forked from scrogson/no-way-jose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
57 lines (51 loc) · 1.21 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
defmodule NoWayJose.MixProject do
use Mix.Project
@description """
Rust NIF for signing JWTs
"""
@version "0.2.0"
def project do
[
app: :no_way_jose,
compilers: [:rustler] ++ Mix.compilers(),
deps: deps(),
description: @description,
docs: [
main: "readme",
extras: ["README.md"],
source_url_pattern:
"https://github.com/scrogson/no-way-jose/blob/v#{@version}/%{path}#L%{line}"
],
elixir: "~> 1.8",
name: "NoWayJose",
package: [
exclude_patterns: [
~r/\W\.DS_Store$/,
~r/target/
],
files: ["lib", "native", "mix.exs", "README.md", "LICENSE"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/scrogson/no-way-jose"},
maintainers: ["Sonny Scroggin"]
],
rustler_crates: [
nowayjose: []
],
start_permanent: Mix.env() == :prod,
version: @version
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:rustler, "~> 0.21"},
# dev & test deps
{:ex_doc, "~> 0.21", only: :dev},
{:jason, "~> 1.0", only: [:dev, :test]}
]
end
end