fast-html-parser 0.1.0

SIMD-optimized HTML parser for web scraping — fast tokenization, CSS selectors, XPath, encoding detection
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 = "fast-html-parser"
version = "0.1.0"
build = false
exclude = [
    "benches/",
    "tests/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SIMD-optimized HTML parser for web scraping — fast tokenization, CSS selectors, XPath, encoding detection"
homepage = "https://github.com/nicatdcw/fast-html-parser"
documentation = "https://docs.rs/fast-html-parser"
readme = "README.md"
keywords = [
    "html",
    "parser",
    "simd",
    "web-scraping",
    "css-selector",
]
categories = [
    "parser-implementations",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/nicatdcw/fast-html-parser"

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

[features]
async-tokio = ["fhp-tree/async-tokio"]
css-selector = ["dep:fhp-selector"]
default = [
    "css-selector",
    "entity-decode",
]
encoding = ["dep:fhp-encoding"]
entity-decode = [
    "fhp-tree/entity-decode",
    "fhp-tokenizer/entity-decode",
]
simd = []
xpath = [
    "dep:fhp-selector",
    "css-selector",
]

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

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

[[example]]
name = "encoding"
path = "examples/encoding.rs"
required-features = ["encoding"]

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

[[example]]
name = "web_scraping"
path = "examples/web_scraping.rs"
required-features = ["css-selector"]

[[example]]
name = "xpath_query"
path = "examples/xpath_query.rs"
required-features = ["xpath"]

[dependencies.fhp-core]
version = "0.1"

[dependencies.fhp-encoding]
version = "0.1"
optional = true

[dependencies.fhp-selector]
version = "0.1"
optional = true

[dependencies.fhp-tokenizer]
version = "0.1"
default-features = false

[dependencies.fhp-tree]
version = "0.1"
default-features = false

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

[dev-dependencies.lol_html]
version = "2"

[dev-dependencies.scraper]
version = "0.22"

[dev-dependencies.tl]
version = "0.7"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
    "io-util",
]
default-features = false