forked from discord/sorted_set_nif
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
66 lines (58 loc) · 1.45 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
66
defmodule SortedSet.MixProject do
use Mix.Project
def project do
[
app: :sorted_set_nif,
name: "SortedSet",
version: "1.0.0",
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
compilers: Mix.compilers(),
deps: deps(),
docs: docs(),
elixirc_paths: elixirc_paths(Mix.env()),
package: package()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:rustler, "~> 0.22.0"},
{:ex_doc, "~> 0.19", only: [:dev], runtime: false},
{:benchee, "~> 1.0", only: [:dev]},
{:benchee_html, "~> 1.0", only: [:dev]},
{:stream_data, "~> 0.4", only: [:test]},
#{:dialyxir, "~> 1.0.0-rc.3", only: [:dev], runtime: false}
]
end
defp docs do
[
name: "SortedSet",
extras: ["README.md"],
main: "readme",
source_url: "https://github.com/discordapp/sorted_set"
]
end
defp elixirc_paths(:test) do
elixirc_paths(:default) ++ ["test/support"]
end
defp elixirc_paths(_) do
["lib"]
end
defp package do
[
name: :sorted_set_nif,
description: "SortedSet is a fast and efficient Rust backed sorted set.",
files: ["lib", "native", ".formatter.exs", "README*", "LICENSE*", "mix.exs"],
maintainers: ["Discord Core Infrastructure"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/discordapp/sorted_set_nif"
}
]
end
end