-
Notifications
You must be signed in to change notification settings - Fork 25
/
mix.exs
67 lines (60 loc) · 1.56 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
67
defmodule HashRing.Mixfile do
use Mix.Project
@source_url "https://github.com/bitwalker/libring"
@version "1.7.0"
def project do
[
app: :libring,
version: @version,
elixir: "~> 1.11",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: "A fast consistent hash ring implementation in Elixir",
package: package(),
docs: docs(),
deps: deps(),
dialyzer: [
flags: ~w(-Wunmatched_returns -Werror_handling -Wno_opaque -Wunderspecs)
],
preferred_cli_env: [
docs: :docs,
dialyzer: :test,
"hex.publish": :docs
]
]
end
def application do
[
extra_applications: [:logger, :crypto],
mod: {HashRing.App, []}
]
end
defp deps do
[
# Uncomment ONLY ONE of the following dep for benchmarks
# {:hash_ring, github: "voicelayer/hash-ring", only: :dev},
# {:hash_ring, ">= 0.0.0", only: :dev},
{:ex_doc, ">= 0.0.0", only: [:docs]},
{:benchee, "~> 1.0", only: [:dev]},
{:dialyxir, "~> 1.0", only: [:test], runtime: false},
{:stream_data, "~> 1.0", only: [:test]}
]
end
defp package do
[
files: ["lib", "mix.exs", "README.md", "LICENSE.md"],
maintainers: ["Paul Schoenfelder"],
licenses: ["MIT"],
links: %{GitHub: @source_url}
]
end
defp docs do
[
extras: [{:"README.md", [title: "Overview"]}],
main: "readme",
formatter_opts: [gfm: true],
source_url: @source_url,
source_ref: @version
]
end
end