# 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"
rust-version = "1.80"
name = "papagan"
version = "0.1.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast, small-binary language detection with opt-in language packs"
readme = "README.md"
keywords = [
    "language",
    "detection",
    "nlp",
    "ngram",
    "classifier",
]
categories = [
    "text-processing",
    "algorithms",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/suleymanozkeskin/papagan"

[features]
all-langs = [
    "de",
    "en",
    "tr",
    "ru",
    "fr",
    "es",
    "it",
    "nl",
    "pt",
    "pl",
]
de = []
default = [
    "en",
    "parallel",
]
dict-10k = []
dict-5k = []
en = []
es = []
fr = []
it = []
nl = []
parallel = ["dep:rayon"]
pl = []
pt = []
ru = []
tr = []

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

[[example]]
name = "bench_accuracy"
path = "examples/bench_accuracy.rs"

[[example]]
name = "detect"
path = "examples/detect.rs"

[[test]]
name = "accuracy_regression"
path = "tests/accuracy_regression.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[dependencies.phf]
version = "0.11"
features = ["macros"]

[dependencies.rayon]
version = "1.10"
optional = true

[dependencies.smallvec]
version = "1.13"

[dependencies.unicode-normalization]
version = "0.1"

[dependencies.unicode-segmentation]
version = "1.12"

[build-dependencies.phf_codegen]
version = "0.11"

[lints.rust]
unsafe_code = "forbid"
