# 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 = "crw-extract"
version = "0.19.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTML extraction and markdown conversion engine for the CRW web scraper"
homepage = "https://us.github.io/crw"
readme = "README.md"
keywords = [
    "web-scraper",
    "web-crawler",
    "firecrawl",
    "mcp",
    "llm",
]
categories = [
    "web-programming",
    "command-line-utilities",
]
license = "AGPL-3.0"
repository = "https://github.com/us/crw"
resolver = "2"

[features]
default = ["pdf"]
pdf = [
    "dep:pdf-inspector",
    "dep:lopdf",
    "dep:flate2",
]

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

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

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

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

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

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

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

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

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

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

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

[dependencies.crw-core]
version = "0.19.0"

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

[dependencies.flate2]
version = "1"
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.htmd]
version = "0.5"

[dependencies.jsonschema]
version = "0.28"

[dependencies.lol_html]
version = "2"

[dependencies.lopdf]
version = "0.41"
optional = true

[dependencies.once_cell]
version = "1"

[dependencies.pdf-inspector]
version = "0.1"
optional = true

[dependencies.phf]
version = "0.11"
features = ["macros"]

[dependencies.rand]
version = "0.9"

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "cookies",
    "rustls",
    "gzip",
    "brotli",
    "deflate",
    "socks",
    "stream",
    "multipart",
    "hickory-dns",
]
default-features = false

[dependencies.scraper]
version = "0.25"

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

[dependencies.serde_json]
version = "1"

[dependencies.sxd-document]
version = "0.3"

[dependencies.sxd-xpath]
version = "0.4"

[dependencies.sxd_html]
version = "0.1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2"
features = ["serde"]

[dependencies.xxhash-rust]
version = "0.8"
features = ["xxh3"]

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "macros",
    "rt-multi-thread",
]

[dev-dependencies.wiremock]
version = "0.6"
