-
Notifications
You must be signed in to change notification settings - Fork 9
/
mix.exs
53 lines (48 loc) · 1.27 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
defmodule RustlerPrecompilationExample.MixProject do
use Mix.Project
@version "0.5.0"
@source_url "https://github.com/philss/rustler_precompilation_example"
def project do
[
app: :rustler_precompilation_example,
version: @version,
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
description: "A rustler precomplication example",
package: package(),
deps: deps()
]
end
# When publishing a library to with precompiled NIFs to Hex,
# is is mandatory to include a checksum file (along with other
# necessary files in the library).
#
# Refer to the "The release flow"
# in the "Precompilation guide" for more details:
# https://hexdocs.pm/rustler_precompiled/precompilation_guide.html#the-release-flow
defp package do
[
files: [
"lib",
"native",
"checksum-*.exs",
"mix.exs"
],
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url}
]
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_precompiled, "~> 0.4"},
{:rustler, ">= 0.0.0", optional: true}
]
end
end