-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
77 lines (70 loc) · 1.6 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
68
69
70
71
72
73
74
75
76
77
defmodule Flower.MixProject do
use Mix.Project
def project do
[
app: :flower,
name: "flower",
version: "0.1.4",
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
compilers: [:rustler] ++ Mix.compilers(),
rustler_crates: rustler_crates(),
package: package(),
description: description(),
deps: deps(),
source_url: "https://github.com/CodeSteak/Flower",
docs: [
main: "readme",
extras: ["README.md"]
]
]
end
defp package() do
[
maintainers: ["Codesteak"],
licenses: ["MIT"],
links: %{
"Github" => "https://github.com/CodeSteak/Flower"
},
files: [
"mix.exs",
"native/bitarray/src",
"native/bitarray/Cargo.toml",
"native/bitarray/TODO.md",
"lib",
"LICENSE",
"README.md",
"CHANGELOG.md"
]
]
end
def description() do
"""
This is an implementation of Bloom Filters for Elixir. It uses Rust NIFs for better performance.
"""
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:rustler, "~> 0.16.0"},
{:ex_doc, "~> 0.16", only: :dev, runtime: false}
]
end
defp rustler_crates do
[
bitarray: [
path: "native/bitarray",
mode: rustc_mode(Mix.env())
]
]
end
defp rustc_mode(:prod), do: :release
defp rustc_mode(_), do: :debug
end