-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
79 lines (63 loc) · 1.71 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
[package]
name = "sayit"
version = "0.3.0"
authors = ["fogapod"]
edition = "2021"
description = "String replacements using regex"
repository = "https://git.based.computer/fogapod/sayit"
homepage = "https://git.based.computer/fogapod/sayit"
license = "AGPL-3.0"
keywords = ["text"]
categories = ["text-processing"]
include = [
"/README.md",
"/Cargo.toml",
"/src/*",
"LICENSE",
# unfortunate but otherwise cargo publish fails becuase there is a bench target
"/benches",
]
[dependencies]
# random replacements
fastrand = "2.0"
# pattern definition
# excluded a couple unicode features
regex-automata = { version = "0.4", default-features = false, features = ["std", "perf", "meta", "nfa", "dfa", "hybrid", "unicode-case", "unicode-perl", "unicode-word-boundary"] }
# logging
log = "0.4"
# cli parsing
clap = { version = "4.4", optional = true, features = ["derive"] }
# deserialization for Tag trait
serde = { version = "1.0", features = ["derive"], optional = true }
typetag = { version = "0.2", optional = true }
# format deserialization
ron = { version = "0.8", optional = true }
# clone stored Tag trait objects
dyn-clone = "1.0"
[dev-dependencies]
ron = { version = "0.8" }
serde_json = { version = "1.0" }
criterion = { version = "0.5", features = ["html_reports"] }
codspeed-criterion-compat = "2.4.0"
[features]
default = ["deserialize"]
deserialize = ["dep:serde", "dep:typetag"]
cli = ["deserialize", "dep:clap", "dep:ron"]
[profile.dev]
opt-level = 3
[profile.release]
codegen-units = 1
lto = true
strip = true
[[bin]]
name = "sayit"
required-features = ["cli"]
[[bench]]
name = "accents"
harness = false
[[bench]]
name = "examples"
harness = false
[[bench]]
name = "literal_string"
harness = false