[package]
edition = "2021"
rust-version = "1.82"
name = "rehuman"
version = "0.1.3"
authors = ["Peter Szemraj <peterszemraj+dev@gmail.com>"]
build = "build.rs"
include = [
"Cargo.toml",
"Cargo.lock",
"LICENSE",
"README.md",
"build.rs",
"config.example.toml",
"src/**",
"tests/**",
"docs/**",
"examples/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "rehuman"
description = "Unicode-safe text cleaning & typographic normalization for Rust"
homepage = "https://github.com/pszemraj/rehuman"
documentation = "https://docs.rs/rehuman"
readme = "README.md"
keywords = [
"text",
"unicode",
"normalization",
"cleaning",
"llm",
]
categories = [
"text-processing",
"encoding",
]
license = "MIT"
repository = "https://github.com/pszemraj/rehuman"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = [
"unorm",
"stats",
]
security = []
stats = []
unorm = ["dep:unicode-normalization"]
[lib]
name = "rehuman"
path = "src/lib.rs"
[[bin]]
name = "ishuman"
path = "src/bin/ishuman.rs"
[[bin]]
name = "rehuman"
path = "src/bin/rehuman.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[test]]
name = "cli_contract"
path = "tests/cli_contract.rs"
[[test]]
name = "property_tests"
path = "tests/property_tests.rs"
[dependencies.anyhow]
version = "1.0.100"
[dependencies.clap]
version = "4.5.50"
features = ["derive"]
[dependencies.deunicode]
version = "1.6.2"
[dependencies.directories]
version = "6.0.0"
[dependencies.icu_properties]
version = "2.0.1"
features = ["compiled_data"]
[dependencies.phf]
version = "0.13.1"
features = ["macros"]
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.145"
[dependencies.tempfile]
version = "3.23.0"
[dependencies.toml]
version = "0.9.8"
[dependencies.unicode-normalization]
version = "0.1.24"
optional = true
[dependencies.unicode-segmentation]
version = "1.12"
[dev-dependencies.proptest]
version = "1.8.0"
[build-dependencies.icu_properties]
version = "2.0.1"
features = ["compiled_data"]
[build-dependencies.phf_codegen]
version = "0.13.1"
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1