[package]
edition = "2024"
rust-version = "1.88"
name = "domq"
version = "0.5.0"
authors = ["iamsaquib8 <saquibulhassan6@gmail.com>"]
build = false
exclude = [
"/.github",
"/benchmarks",
"/fuzz",
"/wasm",
"/cli",
"/derive",
"/python",
"/packaging",
"/playground",
"/docs/launch",
"/conformance",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tiny, zero-dependency, forgiving HTML parser: turn messy real-world HTML into a clean DOM tree (and JSON). WASM-first, no_std-friendly."
homepage = "https://github.com/iamsaquib8/domq"
documentation = "https://docs.rs/domq"
readme = "README.md"
keywords = [
"html",
"parser",
"css-selector",
"markdown",
"wasm",
]
categories = [
"parser-implementations",
"wasm",
"web-programming",
"no-std",
]
license = "MIT"
repository = "https://github.com/iamsaquib8/domq"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = [
"json",
"query",
"markdown",
]
derive = [
"query",
"dep:domq-derive",
]
entities-full = []
json = []
markdown = []
query = []
serde = ["dep:serde"]
simd = ["dep:memchr"]
std = []
[lib]
name = "domq"
path = "src/lib.rs"
[[example]]
name = "parse"
path = "examples/parse.rs"
[[example]]
name = "query"
path = "examples/query.rs"
[[example]]
name = "to_markdown"
path = "examples/to_markdown.rs"
required-features = [
"query",
"markdown",
]
[[test]]
name = "chunks"
path = "tests/chunks.rs"
[[test]]
name = "corpus"
path = "tests/corpus.rs"
[[test]]
name = "editing"
path = "tests/editing.rs"
[[test]]
name = "editing_properties"
path = "tests/editing_properties.rs"
[[test]]
name = "entities"
path = "tests/entities.rs"
[[test]]
name = "events"
path = "tests/events.rs"
[[test]]
name = "extract"
path = "tests/extract.rs"
required-features = [
"derive",
"markdown",
]
[[test]]
name = "extract_derive_properties"
path = "tests/extract_derive_properties.rs"
required-features = ["derive"]
[[test]]
name = "extract_properties"
path = "tests/extract_properties.rs"
[[test]]
name = "html_output"
path = "tests/html_output.rs"
[[test]]
name = "json_output"
path = "tests/json_output.rs"
[[test]]
name = "links"
path = "tests/links.rs"
[[test]]
name = "main_content"
path = "tests/main_content.rs"
[[test]]
name = "markdown_output"
path = "tests/markdown_output.rs"
[[test]]
name = "metadata"
path = "tests/metadata.rs"
[[test]]
name = "output_properties"
path = "tests/output_properties.rs"
[[test]]
name = "parsing"
path = "tests/parsing.rs"
[[test]]
name = "properties"
path = "tests/properties.rs"
[[test]]
name = "query"
path = "tests/query.rs"
[[test]]
name = "query_memory"
path = "tests/query_memory.rs"
[[test]]
name = "query_properties"
path = "tests/query_properties.rs"
[[test]]
name = "serde_roundtrip"
path = "tests/serde_roundtrip.rs"
[[test]]
name = "source_spans"
path = "tests/source_spans.rs"
[[test]]
name = "tables"
path = "tests/tables.rs"
[[test]]
name = "text_output"
path = "tests/text_output.rs"
[[test]]
name = "url"
path = "tests/url.rs"
[dependencies.domq-derive]
version = "0.5.0"
optional = true
[dependencies.memchr]
version = "2.7"
optional = true
default-features = false
[dependencies.serde]
version = "1"
features = ["alloc"]
optional = true
default-features = false
[dev-dependencies.insta]
version = "1"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.serde_json]
version = "1"
[profile.release]
opt-level = 3
lto = true