Packages

Elixir lib for Aho-Corasick string searching. Uses a Rust-based NIF for greatly improved performance.

Current section

Files

Jump to

mix.exs

defmodule AhoCorasearch.MixProject do
use Mix.Project
def project do
[
app: :aho_corasick_search,
description:
"Elixir lib for Aho-Corasick string searching. Uses a Rust-based NIF for greatly improved performance.",
version: "0.3.1",
elixir: "~> 1.15",
name: "AhoCorasearch",
source_url: "https://github.com/abs/AhoCorasearch",
docs: [
main: "AhoCorasearch",
extras: ["Usage.md"]
],
package: [
name: "aho_corasick_search",
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/abs/AhoCorasearch"},
source_url: "https://github.com/abs/AhoCorasearch",
files: ~w(lib priv native .formatter.exs mix.exs README* LICENSE*
CHANGELOG*)
],
rustler_crates: rustler_crates(),
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env())
]
end
defp elixirc_paths(:test), do: ["lib", "test/benchmark_libs"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :tools]
]
end
defp rustler_crates do
[
aho_corasearch_nif: [
path: "native/aho_corasearch_nif",
mode: :release
]
]
end
defp deps do
[
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:makeup_html, ">= 0.0.0", only: :dev, runtime: false},
{:rustler, "~> 0.29"},
{:benchee, "~> 1.0", only: [:test, :dev]},
{:aho_corasick, git: "https://github.com/wudeng/aho-corasick", only: [:test]}
]
end
end