-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
65 lines (59 loc) · 1.54 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
defmodule JsonSchemaNif.MixProject do
use Mix.Project
@version "0.1.1"
@project_url "https://github.com/podium/json_schema_nif"
def project do
[
app: :json_schema_nif,
name: "JSON Schema NIF",
description: "A JSON Schema Validator via NIF bindings to Rust",
version: @version,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
package: package(),
test_coverage: [summary: [threshold: 33.33]],
dialyzer: [
plt_add_apps: [:mix],
ignore_warnings: ".dialyzer.ignore-warnings"
]
]
end
defp package do
[
maintainers: ["Podium"],
licenses: ["MIT"],
links: %{
"GitHub" => @project_url,
"Changelog" => "#{@project_url}/blob/master/CHANGELOG.md"
},
files: [
"lib",
"native/json_schema_nif/.cargo",
"native/json_schema_nif/src",
"native/json_schema_nif/Cargo*",
"checksum-*.exs",
"mix.exs",
"README.md",
"CHANGELOG.md"
]
]
end
defp deps do
[
{:rustler, "~> 0.35.0", optional: true},
{:rustler_precompiled, "~> 0.7"},
# test
{:mix_test_watch, "~> 1.2.0", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.30", only: :dev, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}
]
end
defp aliases do
[
"deps.get": ["deps.get", "deps.unlock --unused"]
]
end
end