[package] name = "rustrict" authors = ["Finn Bear"] version = "0.7.33" edition = "2021" license = "MIT OR Apache-2.0" repository = "https://github.com/finnbear/rustrict/" description = "rustrict is a profanity filter for Rust" exclude = ["fuzz/"] [lib] name = "rustrict" path = "src/lib.rs" [[bin]] name = "false_positive_finder" path = "src/false_positive_finder.rs" required-features = ["find_false_positives"] [[bin]] name = "replacement_finder" path = "src/replacement_finder.rs" required-features = ["find_replacements"] [[bin]] name = "character_analyzer" path = "src/character_analyzer.rs" required-features = ["imageproc", "image", "rusttype", "unicode-width", "walkdir", "rayon"] [[bin]] name = "trace" path = "src/trace.rs" required-features = ["trace"] [features] default = ["censor", "context"] censor = ["arrayvec", "bitflags", "lazy_static", "itertools", "unicode-normalization", "rustc-hash"] context = ["censor", "strsim"] customize = ["censor"] width = ["lazy_static", "itertools"] pii = ["lazy_static", "regex"] find_false_positives = ["censor", "regex", "indicatif", "rayon"] find_replacements = ["csv"] trace = ["censor"] trace_full = ["trace"] serde = ["dep:serde", "arrayvec/serde"] [package.metadata.docs.rs] features = ["censor", "context", "customize", "width"] [profile.release] panic = 'abort' [dependencies] arrayvec = {version = "0.7", optional = true} finl_unicode = "1.2" unicode-normalization = {version = "0.1.22", optional = true} unicode-width = {version = "0.1", optional = true} bitflags = {version = "1.3", optional = true} lazy_static = {version = "1.4", optional = true} itertools = {version = "0.10", optional = true} rustc-hash = {version = "1.1", optional = true} regex = {version = "1.5", optional = true} indicatif = {version = "0.17.0-beta.1", optional = true} rayon = {version = "1.5", optional = true} doc-comment = "0.3.3" strsim = {version = "0.10.0", optional = true} csv = {version="1.1", optional = true} imageproc = {version = "0.22", optional = true} rusttype = {version = "0.9", optional = true} image = {version = "0.23.14", optional = true} walkdir = {version = "2", optional = true} serde = {version = "1", features=["derive"], optional = true} [dev-dependencies] rand = "0.8" csv = "1.1" censor_crate = { package = "censor", version = "0.3.0" } rustrict_old = { package = "rustrict", version = "0.7.24" } serial_test = "0.5" stfu_crate = { package = "stfu", version = "0.1.0" } profane_rs_crate = { package = "profane-rs", version = "0.0.4" } bincode = "1.3.3" serde_json = "1"