-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
54 lines (45 loc) · 1.25 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
[package]
name = "bubble-bath"
version = "0.2.1"
edition = "2021"
description = "Small and quick HTML sanitizer"
license = "MIT OR Apache-2.0"
repository = "https://github.com/aumetra/bubble-bath"
# crates.io-relevant fields
categories = ["text-processing", "web-programming"]
exclude = [".github", ".vscode", "benches/*.txt", "examples", "fuzz", "tests"]
keywords = ["html", "sanitization", "security", "xss"]
[[bench]]
name = "ammonia_intro"
harness = false
[[bench]]
name = "rustlang_website"
harness = false
[[bench]]
name = "wikipedia"
harness = false
[dependencies]
ahash = "0.8.11"
bytecount = "0.6.8"
lol_html = "2.0.0"
once_cell = "1.20.2"
slab = "0.4.9"
thiserror = "2.0.0"
[features]
default = ["simd"]
# Enables the `lol_html` `debug_trace` feature. Do not use in production!
debug_trace = ["lol_html/debug_trace"]
# Enables SIMD acceleration for some operations we have to perform
simd = ["bytecount/runtime-dispatch-simd"]
[dev-dependencies]
ammonia = "4.0.0"
divan = "0.1.15"
insta = { version = "1.41.1", features = ["glob"] }
mimalloc = "0.1.43"
[lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
[lints.rust]
missing_docs = "deny"
rust_2018_idioms = { level = "forbid", priority = -1 }
unsafe_code = "deny"