Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Expath.MixProject do
use Mix.Project
@version "0.1.0"
def project do
[
app: :expath,
version: @version,
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
deps: deps(),
rustler_crates: rustler_crates(),
# Documentation
name: "Expath",
description:
"Lightning-fast XML parsing and XPath querying for Elixir, powered by Rust NIFs",
source_url: "https://github.com/wearecococo/expath",
homepage_url: "https://github.com/wearecococo/expath",
docs: [
main: "Expath",
extras: [
"README.md": [title: "Overview"],
"CHANGELOG.md": [title: "Changelog"]
],
groups_for_modules: [
"Main API": [Expath],
"Data Types": [Expath.Document]
]
],
# Package
package: package()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:rustler_precompiled, "~> 0.8.3"},
{:rustler, "~> 0.36.0", optional: true},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:sweet_xml, "~> 0.7.4", only: [:dev, :test], runtime: false},
{:benchee, "~> 1.3", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.34", only: :dev, runtime: false}
]
end
defp rustler_crates do
[
expath: [path: "native/expath", mode: rustler_mode()]
]
end
defp rustler_mode do
case Mix.env() do
:prod -> :release
_ -> :debug
end
end
defp package do
[
description:
"Lightning-fast XML parsing and XPath querying for Elixir, powered by Rust NIFs",
files: [
"lib",
"native/expath/.cargo",
"native/expath/src",
"native/expath/Cargo*",
"checksum-*.exs",
"mix.exs",
"README.md",
"CHANGELOG.md",
"LICENSE"
],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/wearecococo/expath",
"Documentation" => "https://hexdocs.pm/expath"
},
maintainers: ["John Maxwell <jm@wearecococo.com>"]
]
end
end