safehtml 0.2.0

A high-performance, no_std Rust library for Type-Driven Security (XSS and injection prevention).
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 = "2024"
rust-version = "1.85"
name = "safehtml"
version = "0.2.0"
build = false
exclude = [
    "fuzz/",
    "build.sh",
    "CLAUDE.md",
    "GEMINI.md",
    ".gitignore",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance, no_std Rust library for Type-Driven Security (XSS and injection prevention)."
documentation = "https://docs.rs/safehtml"
readme = "README.md"
keywords = [
    "security",
    "xss",
    "no-std",
    "html",
    "sanitization",
]
categories = [
    "no-std",
    "web-programming",
    "encoding",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/vsukhoml/safehtml"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
alloc = []
default = ["alloc"]
serde = ["dep:serde"]
simd = []

[lib]
name = "safehtml"
path = "src/lib.rs"

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

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

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

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

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

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

[dependencies.serde]
version = "1.0"
features = ["alloc"]
optional = true
default-features = false

[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.trybuild]
version = "1.0.118"

[profile.bench]
lto = "thin"
codegen-units = 1