-
Notifications
You must be signed in to change notification settings - Fork 19
/
mix.exs
87 lines (75 loc) · 1.75 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
78
79
80
81
82
83
84
85
86
87
defmodule Rox.Mixfile do
use Mix.Project
def project do
[
app: :rox,
version: "2.3.0",
elixir: "~> 1.4",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
compilers: [:rustler] ++ Mix.compilers(),
rustler_crates: rustler_crates(),
package: package(),
description: description(),
deps: deps()
]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
[extra_applications: [:logger]]
end
# Type "mix help deps" for more examples and options
defp deps do
[
# Rust NIFs
{:rustler, "~> 0.18"},
# Doc generation
{:ex_doc, "~> 0.18", only: :dev},
# Benchmarking
{:benchfella, "~> 0.3.0", only: :dev},
# Generate fake data
{:faker, "~> 0.7", only: :dev},
# Computational flows
{:flow, "~> 0.14", only: :dev},
# Producers and consumers
{:gen_stage, "~> 0.14", only: :dev},
# Dialyzer support
{:dialyxir, "~> 1.0.0-rc.1", only: :dev, runtime: false}
]
end
defp rustler_crates do
[
rox_nif: [
path: "native/rox_nif",
cargo: :system,
default_features: false,
features: [],
mode: :release
]
]
end
defp description do
"""
Rust powered NIF bindings to Facebook's RocksDB
"""
end
defp package do
[
name: :rox,
files: [
"lib",
"native/rox_nif/Cargo.*",
"native/rox_nif/src",
"mix.exs",
"README.md",
"History.md",
"LICENSE"
],
maintainers: ["Griffin Smith"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/urbint/rox"}
]
end
end