-
Notifications
You must be signed in to change notification settings - Fork 6
/
mix.exs
59 lines (53 loc) · 1.34 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 Lingua.MixProject do
use Mix.Project
@version "0.2.0"
def project do
[
app: :lingua,
version: @version,
# rustler aims to support the three latest Elixir and Erlang versions
# so with Elixir 1.15 this is 1.13, 1.14, and 1.15
# + Erlang/OTP 26, 25 and 24
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
description: description(),
test_coverage: [tool: ExCoveralls],
package: package(),
deps: deps()
]
end
defp description do
"An Elixir wrapper around the Rust Lingua language detection library."
end
defp package do
[
maintainers: ["Josh Rotenberg"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/joshrotenberg/lingua_ex"},
name: :lingua,
files: [
"lib",
"mix.exs",
"README.md",
"LICENSE",
"native/lingua_nif/Cargo.*",
"native/lingua_nif/src",
"checksum-*.exs"
]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:rustler_precompiled, "~> 0.6.2"},
{:rustler, "~> 0.29.1", optional: true},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.16", only: :test},
{:ex_doc, "~> 0.24", only: :dev, runtime: false}
]
end
end