# 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-renderer"
version = "0.13.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP and CDP browser rendering 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]
auto-browser = ["dep:dirs"]
cdp = [
    "tokio-tungstenite",
    "crw-core/cdp",
]
default = []

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

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

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

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

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

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

[dependencies.async-trait]
version = "0.1"

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

[dependencies.crw-extract]
version = "0.13.4"

[dependencies.dashmap]
version = "6"

[dependencies.dirs]
version = "6"
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.moka]
version = "0.12"
features = ["future"]

[dependencies.publicsuffix]
version = "2"

[dependencies.rand]
version = "0.9"

[dependencies.regex]
version = "1"

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

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

[dependencies.serde_json]
version = "1"

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

[dependencies.tokio-tungstenite]
version = "0.28"
features = ["rustls-tls-native-roots"]
optional = true

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.axum]
version = "0.8"
features = ["macros"]

[dev-dependencies.brotli]
version = "8"

[dev-dependencies.flate2]
version = "1"

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

[target."cfg(unix)".dependencies.libc]
version = "0.2"
