[package]
name = "facet-singularize"
version = "0.50.0-rc.4"
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
description = "Fast, no-regex English singularization for the facet ecosystem"
keywords = ["singular", "plural", "inflection", "facet"]
categories = ["text-processing"]
homepage = "https://facet.rs"

[package.metadata."docs.rs"]
rustdoc-args = ["--html-in-header", "arborium-header.html"]

[features]
default = ["std"]
std = ["alloc"]
alloc = []
gen-ie-exceptions = [
    "dep:facet",
    "dep:facet-json",
    "dep:flate2",
    "dep:rc-zip-sync",
    "dep:rmp",
    "dep:ureq",
    "dep:wordfreq",
]

[dependencies]
# Optional deps for gen-ie-exceptions binary
facet = { workspace = true, optional = true }
facet-json = { workspace = true, optional = true }
rmp = { version = "0.8", optional = true }
flate2 = { version = "1.1", optional = true }
rc-zip-sync = { version = "4", optional = true }
ureq = { version = "3.2", optional = true }
wordfreq = { version = "0.2.3", optional = true }

[dev-dependencies]
divan = { workspace = true }

[[bin]]
name = "gen-ie-exceptions"
required-features = ["gen-ie-exceptions"]

[[bench]]
name = "singularize"
harness = false

[lints]
workspace = true
