-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
59 lines (53 loc) · 1.48 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
defmodule Thrash.Mixfile do
use Mix.Project
def project do
[app: :thrash,
version: "0.3.3",
description: description,
package: package,
elixir: "~> 1.1",
source_url: "https://github.com/dantswain/thrash",
docs: [main: "Thrash"],
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
elixirc_paths: elixirc_paths(Mix.env),
deps: deps]
end
def application do
[applications: [:logger, :quaff]]
end
def elixirc_paths(:bench), do: ["lib", "bench"]
def elixirc_paths(:test), do: ["lib", "test"]
def elixirc_paths(_), do: ["lib"]
defp deps do
[{:quaff,
github: "qhool/quaff",
tag: "9a4ba378d470beac708e366dc9bacd5a9ef6f016",
override: true,
only: [:dev, :test, :bench]
},
{:earmark, "~> 0.1", only: :dev},
{:ex_doc, "~> 0.11", only: :dev},
{:dialyze, "~> 0.2", only: :dev},
{:credo, "~> 0.3", only: :dev},
{:thrift_ex,
github: "dantswain/thrift_ex",
only: :bench,
tag: "f6394871e5685aa1c7e125f198dead0c8a15e992"},
{:exprof, "~>0.2", only: :bench},
{:benchwarmer, "~>0.0.2", only: :bench}]
end
defp description do
"""
Fast serializer/deserializer for Apache Thrift's binary protocol.
"""
end
defp package do
[
files: ["lib", "LICENSE.txt", "mix.exs", "README.md"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/dantswain/thrash"},
maintainers: ["Dan Swain"]
]
end
end