Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Lingua.MixProject do
use Mix.Project
@version "0.3.6"
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.8.4"},
{:rustler, "~> 0.37.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