-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
95 lines (85 loc) · 2.27 KB
/
Copy pathCargo.toml
File metadata and controls
95 lines (85 loc) · 2.27 KB
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
85
86
87
88
89
90
91
92
93
94
95
[package]
name = "fast-unescape"
version = "0.1.0"
edition = "2024"
description = "'unescapes' a escaped string with escape sequences into literal one"
repository = "https://codeberg.org/DM-Earth/fast-unescape"
license = "LGPL-3.0-or-later"
keywords = ["unescape"]
categories = ["text-processing", "parsing", "no-std", "no-std::no-alloc"]
[badges]
maintenance = { status = "actively-developed" }
[dependencies]
memchr = { version = "2.8", default-features = false }
[features]
default = ["std"]
alloc = []
std = [
"alloc",
# use more instruction sets
"memchr/std",
]
[dev-dependencies]
criterion = { version = "0.8", features = ["html_reports"] }
# alternatives
unescaper = "0.1"
[[bench]]
name = "simple_unescape"
harness = false
[[bench]]
name = "zh_literature"
harness = false
[[bench]]
name = "en_literature"
harness = false
[workspace.lints.rust]
missing-docs = "warn"
missing-debug-implementations = "warn"
let-underscore-drop = "warn"
single-use-lifetimes = "warn"
trivial-numeric-casts = "warn"
elided-lifetimes-in-paths = "deny"
unused-lifetimes = "forbid"
unused-macro-rules = "warn"
unused-qualifications = "warn"
variant-size-differences = "warn"
dyn-drop = "forbid"
ellipsis-inclusive-range-patterns = "forbid"
exported-private-dependencies = "forbid"
uncommon-codepoints = "deny"
unexpected_cfgs = { level = "warn", check-cfg = [] }
[workspace.lints.clippy]
missing-panics-doc = "warn"
missing-errors-doc = "warn"
cloned-instead-of-copied = "warn"
future-not-send = "warn"
if-not-else = "warn"
if-then-some-else-none = "warn"
impl-trait-in-params = "warn"
macro-use-imports = "deny"
exhaustive-enums = "warn"
str-to-string = "warn"
iter-without-into-iter = "warn"
decimal-literal-representation = "warn"
ref-as-ptr = "warn"
unused-trait-names = "warn"
unnecessary-semicolon = "warn"
unnecessary-debug-formatting = "warn"
too-long-first-doc-paragraph = "warn"
ref-option = "warn"
redundant-test-prefix = "warn"
map-with-unused-argument-over-ranges = "warn"
manual-midpoint = "warn"
manual-is-power-of-two = "warn"
ip-constant = "warn"
elidable-lifetime-names = "warn"
coerce-container-to-any = "warn"
todo = "warn"
inline-always = "warn"
multiple-crate-versions = "warn"
use-self = "warn"
useless-let-if-seq = "warn"
suboptimal-flops = "warn"
redundant-clone = "warn"
[lints]
workspace = true