-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Cargo.toml
84 lines (74 loc) · 2.49 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[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"