html2json 0.5.7

HTML to JSON extractor
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"
name = "html2json"
version = "0.5.7"
authors = ["Qreta Dev <qretadev@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTML to JSON extractor"
readme = "README.md"
license = "MIT"
repository = "https://github.com/qretaio/html2json"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }{ archive-suffix }"
bin-dir = "{ bin }{ binary-ext }"

[package.metadata.wasm-pack.profile.release.wasm-bindgen]
debug-js-glue = false
demangle-name-section = true
dwarf-debug-info = false
omit-default-module-path = false

[features]
cli = [
    "dep:clap",
    "dep:similar",
]
default = []
wasm = [
    "dep:wasm-bindgen",
    "dep:js-sys",
]

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

[[bin]]
name = "html2json"
path = "src/main.rs"
required-features = ["cli"]

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

[dependencies.anyhow]
version = "1.0"

[dependencies.clap]
version = "4.0"
features = ["derive"]
optional = true

[dependencies.ego-tree]
version = "0.10.0"

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

[dependencies.regex]
version = "1.0"

[dependencies.scraper]
version = "0.25"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.similar]
version = "2.7"
features = ["bytes"]
optional = true

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

[dev-dependencies.criterion]
version = "0.8.1"

[dev-dependencies.similar-asserts]
version = "1.7"
features = ["serde"]