# 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 = "2024"
rust-version = "1.92"
name = "facet-singularize"
version = "0.50.0-rc.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast, no-regex English singularization for the facet ecosystem"
homepage = "https://facet.rs"
readme = "README.md"
keywords = [
    "singular",
    "plural",
    "inflection",
    "facet",
]
categories = ["text-processing"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/facet-rs/facet"

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

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

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

[[bin]]
name = "gen-ie-exceptions"
path = "src/bin/gen-ie-exceptions.rs"
required-features = ["gen-ie-exceptions"]

[[bench]]
name = "singularize"
path = "benches/singularize.rs"
harness = false

[dependencies.facet]
version = "0.50.0-rc.4"
optional = true

[dependencies.facet-json]
version = "0.50.0-rc.4"
optional = true

[dependencies.flate2]
version = "1.1"
optional = true

[dependencies.rc-zip-sync]
version = "4"
optional = true

[dependencies.rmp]
version = "0.8"
optional = true

[dependencies.ureq]
version = "3.2"
optional = true

[dependencies.wordfreq]
version = "0.2.3"
optional = true

[dev-dependencies.divan]
version = "4.7.0"
package = "codspeed-divan-compat"

[lints.clippy]
disallowed_methods = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(facet_no_doc)",
    "cfg(kani)",
]
