# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "alphabet_detector"
version = "0.9.2"
authors = ["Dmitry Rodionov <gh@rdmtr.com>"]
build = false
include = ["src"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Natural language alphabet detection library"
documentation = "https://docs.rs/alphabet_detector/"
readme = "README.md"
keywords = [
    "language",
    "match",
    "split",
    "word",
    "unicode",
]
categories = ["text-processing"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/RoDmitry/alphabet_detector"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
cli_alphabet_intersection = [
    "files_read",
    "clap",
    "threadpool",
]
compact_str = ["dep:compact_str"]
files_read = []
python = ["pyo3"]
test_chars = []

[lib]
name = "alphabet_detector"
path = "src/lib.rs"

[[bin]]
name = "cli_alphabet_intersection"
path = "src/bin/cli_alphabet_intersection.rs"
required-features = ["cli_alphabet_intersection"]

[dependencies.ahash]
version = "0.8"

[dependencies.alphabet_detector_macros]
version = "0.5"

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.compact_str]
version = "0.9"
optional = true

[dependencies.concat_const]
version = "0.2"

[dependencies.debug_unsafe]
version = "0.1"

[dependencies.icu_normalizer]
version = "2.0.0-beta2"

[dependencies.pyo3]
version = "0.27"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.strum]
version = "0.27"

[dependencies.strum_macros]
version = "0.27"

[dependencies.threadpool]
version = "1"
optional = true

[dev-dependencies.rstest]
version = "0.26"

[dev-dependencies.serde_json]
version = "1"

[profile.dev]
opt-level = 1
