bubble-bath 0.2.1

Small and quick HTML sanitizer
Documentation
[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"