ghostwire 1.0.1

A Rust library to bypass Cloudflare anti-bot protections
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 = "ghostwire"
version = "1.0.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust library to bypass Cloudflare anti-bot protections"
readme = "README.md"
keywords = [
    "cloudflare",
    "scraper",
    "http",
    "bot-bypass",
]
categories = [
    "web-programming",
    "network-programming",
]
license = "MIT"
repository = "https://github.com/nacht-org/ghostwire"

[features]
all-captcha = [
    "capsolver",
    "twocaptcha",
    "anticaptcha",
]
anticaptcha = []
capsolver = []
default = []
twocaptcha = []

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

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

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

[dependencies.anyhow]
version = "1"

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

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.futures]
version = "0.3"

[dependencies.html-escape]
version = "0.2"

[dependencies.http]
version = "1"

[dependencies.once_cell]
version = "1"

[dependencies.rand]
version = "0.10"

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.13.2"
features = [
    "cookies",
    "gzip",
    "brotli",
    "deflate",
    "json",
    "multipart",
    "stream",
    "rustls",
    "socks",
    "http2",
    "charset",
    "form",
    "query",
]
default-features = false

[dependencies.reqwest_cookie_store]
version = "0.10"

[dependencies.rustls]
version = "0.23"
features = ["ring"]

[dependencies.rustls-pemfile]
version = "2"

[dependencies.scraper]
version = "0.26"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

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

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
]

[dependencies.url]
version = "2"

[dependencies.webpki-roots]
version = "1.0"

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

[dev-dependencies.tokio-test]
version = "0.4"

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

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true