[package]
edition = "2024"
rust-version = "1.85"
name = "n2words"
version = "0.1.1"
authors = ["Wael TELLAT"]
build = false
exclude = [
"/.github",
"/tests",
"/scripts",
"/benches",
"/docs",
"/.gitignore",
"/cliff.toml",
"/release.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Convert numbers to words in 50 languages (72 regional variants): cardinal, ordinal and currency forms, with arbitrary-precision input"
homepage = "https://github.com/forzagreen/n2words-rs"
documentation = "https://docs.rs/n2words"
readme = "README.md"
keywords = [
"number-to-words",
"i18n",
"numbers",
"localization",
"spell-out",
]
categories = [
"internationalization",
"localization",
"text-processing",
"value-formatting",
]
license = "MIT"
repository = "https://github.com/forzagreen/n2words-rs"
[lib]
name = "n2words"
path = "src/lib.rs"
[[bin]]
name = "n2words"
path = "src/bin/n2words.rs"
[[example]]
name = "generate_languages_md"
path = "examples/generate_languages_md.rs"
[dependencies.num-bigint]
version = "0.5"
[dependencies.num-integer]
version = "0.1"
[dependencies.num-traits]
version = "0.2"
[dev-dependencies.libtest-mimic]
version = "0.8"
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"
[profile.release]
lto = true
codegen-units = 1