Packages

A pure Elixir implementation of the Crandall reduction algorithm for efficient modular arithmetic.

Current section

Files

Jump to
Raw

mix.exs

defmodule CrandallReduction.MixProject do
use Mix.Project
def project do
[
app: :crandall_reduction,
version: "1.0.0",
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "Crandall reduction",
description: """
A pure Elixir implementation of the Crandall reduction algorithm for efficient modular arithmetic.
""",
docs: docs(),
package: package(),
aliases: aliases(),
dialyzer: dialyzer()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
def docs do
[
main: "readme",
extras: ["README.md", "LICENSE.md", "CHANGELOG.md"]
]
end
def package do
[
name: :crandall_reduction,
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/TODO/crandall_reduction"}
]
end
def aliases do
[
check: [
"hex.audit",
"compile --warnings-as-errors --force",
"format --check-formatted --migrate",
"credo",
"deps.unlock --check-unused",
"spellweaver.check",
"dialyzer"
]
]
end
def dialyzer do
[
plt_add_apps: [:mix],
ignore_warnings: ".dialyzer_ignore.exs"
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:nstandard, "~> 0.1"},
{:ex_doc, "~> 0.31", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:spellweaver, "~> 0.1", only: [:dev, :test], runtime: false}
]
end
end