htmlsanitizer 0.2.0

A fast, allowlist-based HTML sanitizer
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "htmlsanitizer"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fast, allowlist-based HTML sanitizer"
readme = "README.md"
keywords = [
    "html",
    "sanitizer",
    "xss",
    "security",
]
categories = [
    "web-programming",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/SYM01/htmlsanitizer-rs"

[package.metadata.wasm-pack.profile.release]
wasm-opt = false

[features]
default = []
wasm = [
    "wasm-bindgen",
    "js-sys",
]

[lib]
name = "htmlsanitizer"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[example]]
name = "basic"
path = "examples/basic.rs"

[[example]]
name = "custom"
path = "examples/custom.rs"

[[example]]
name = "streaming"
path = "examples/streaming.rs"

[[test]]
name = "allowlist_test"
path = "tests/allowlist_test.rs"

[[test]]
name = "quick_test"
path = "tests/quick_test.rs"

[[test]]
name = "sanitize_test"
path = "tests/sanitize_test.rs"

[[test]]
name = "streaming_test"
path = "tests/streaming_test.rs"

[[bench]]
name = "sanitize"
path = "benches/sanitize.rs"
harness = false

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.url]
version = "2"

[dependencies.wasm-bindgen]
version = "0.2.114"
optional = true

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
strip = true