forked from lambdaclass/lambda_ethereum_consensus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
68 lines (63 loc) · 1.9 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
defmodule LambdaEthereumConsensus.MixProject do
use Mix.Project
def project do
[
app: :lambda_ethereum_consensus,
version: "0.1.0",
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: dialyzer(),
elixirc_paths: compiler_paths(Mix.env()),
warn_test_pattern: "_remove_warning.exs",
preferred_cli_env: [
dialyzer: :test
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :observer],
mod: {LambdaEthereumConsensus.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:phoenix, "~> 1.7.7"},
{:plug_cowboy, "~> 2.5"},
{:tesla, "~> 1.4"},
{:exleveldb, "~> 0.14"},
{:jason, ">= 1.0.0"},
{:joken, "~> 2.6"},
{:rustler, "~> 0.29.1"},
{:broadway, "~> 1.0"},
{:snappyer, "~> 1.2"},
{:yaml_elixir, "~> 2.8"},
{:timex, "~> 3.7"},
{:rexbug, "~> 1.0"},
{:eep, git: "https://github.com/virtan/eep", branch: "master"},
{:protobuf, "~> 0.12.0"},
{:uuid, "~> 1.1"},
{:telemetry, "~> 1.0"},
{:telemetry_poller, "~> 1.0"},
{:telemetry_metrics, "~> 0.6"},
{:telemetry_metrics_prometheus, "~> 1.1.0"},
{:eflambe, "~> 0.3.1"},
{:patch, "~> 0.12.0", only: [:test]},
{:stream_data, "~> 0.6", only: [:test]},
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false}
]
end
defp dialyzer do
[
# https://elixirforum.com/t/help-with-dialyzer-output/15202/5
plt_add_apps: [:ex_unit, :mix],
plt_file: {:no_warn, "priv/plts/project.plt"}
]
end
defp compiler_paths(:test), do: ["test/spec", "test/fixtures"] ++ compiler_paths(:prod)
defp compiler_paths(_), do: ["lib", "proto"]
end