-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
79 lines (71 loc) · 1.97 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
defmodule Noise.MixProject do
use Mix.Project
@version "0.1.0"
def project do
[
# Library
app: :noise_protocol,
version: @version,
elixir: "~> 1.14",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() != :test,
deps: deps(),
# Docs
name: "Noise Protocol",
source_url: "https://github.com/Sgiath/noise-protocol",
homepage_url: "https://sgiath.dev/libraries#noise",
description: """
Library implementing Noise protocol
""",
package: package(),
docs: docs()
]
end
def application do
[
extra_applications: [:logger, :crypto]
]
end
defp deps do
[
# for secp256k1 curve
{:lib_secp256k1, "~> 0.4"},
# for chacha20poly1305 encryption
{:enacl, "~> 1.2"},
# Development
{:ex_check, "~> 0.15", only: [:dev], runtime: false},
{:credo, "~> 1.7", only: [:dev], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev], runtime: false},
{:ex_doc, "~> 0.31", only: [:dev], runtime: false},
{:mix_audit, "~> 2.1", only: [:dev], runtime: false},
{:mix_test_watch, "~> 1.1", only: [:dev], runtime: false}
]
end
defp package do
[
name: "noise_protocol",
maintainers: ["Sgiath <[email protected]>"],
files: ~w(lib LICENSE mix.exs README* CHANGELOG*),
licenses: ["WTFPL"],
links: %{
"Noise Homepage" => "https://noiseprotocol.org/",
"GitHub" => "https://github.com/Sgiath/noise-protocol"
}
]
end
defp docs do
[
authors: ["sgiath <[email protected]>"],
main: "readme",
api_reference: false,
extras: [
"README.md": [filename: "readme", title: "Overview"],
"CHANGELOG.md": [filename: "changelog", title: "Changelog"]
],
formatters: ["html"],
source_ref: "v#{@version}",
source_url: "https://github.com/Sgiath/noise-protocol"
]
end
end