[package]
edition = "2024"
rust-version = "1.97"
name = "astral-html"
version = "0.0.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance HTML parser designed for document traversal."
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/astral-sh/astral-html"
resolver = "2"
[features]
benchmark-jemalloc = ["dep:tikv-jemallocator"]
[lib]
name = "astral_html"
path = "src/lib.rs"
[[example]]
name = "read"
path = "examples/read.rs"
[[test]]
name = "document"
path = "tests/document.rs"
[[test]]
name = "document_snapshots"
path = "tests/document_snapshots.rs"
[[test]]
name = "html5lib"
path = "tests/html5lib.rs"
[[test]]
name = "reader_snapshots"
path = "tests/reader_snapshots.rs"
[[test]]
name = "tokenizer"
path = "tests/tokenizer.rs"
[[bench]]
name = "parse"
path = "benches/parse.rs"
harness = false
[dependencies.memchr]
version = "2.7.4"
features = ["std"]
default-features = false
[dev-dependencies.insta]
version = "1.48.0"
default-features = false
[dev-dependencies.serde_json]
version = "1.0"
features = ["std"]
default-features = false
[target.'cfg(all(target_os = "linux", any(target_arch = "x86_64", target_arch = "aarch64")))'.dependencies.tikv-jemallocator]
version = "0.6.0"
features = ["background_threads_runtime_support"]
optional = true
default-features = false
[lints.clippy]
dbg_macro = "warn"
[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"