# 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.94.0"
name = "stygian-proxy"
version = "0.14.2"
authors = ["Nick Campbell <s0ma@protonmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance, resilient proxy rotation for the Stygian scraping ecosystem."
readme = "README.md"
keywords = [
    "proxy",
    "rotation",
    "scraping",
    "http",
    "socks",
]
categories = [
    "network-programming",
    "web-programming",
]
license = "AGPL-3.0-only OR LicenseRef-Commercial"
repository = "https://github.com/greysquirr3l/stygian"
resolver = "2"

[features]
bayesian-rotation = []
browser = ["dep:stygian-browser"]
coherence-validation = []
default = []
dns-fetcher = ["dep:hickory-resolver"]
full = [
    "socks",
    "graph",
    "browser",
    "tls-profiled",
    "mcp",
    "dns-fetcher",
    "bayesian-rotation",
    "coherence-validation",
    "vendor-stickiness",
]
graph = []
mcp = []
socks = ["reqwest/socks"]
tls-profiled = [
    "dep:stygian-browser",
    "stygian-browser/tls-config",
]
vendor-stickiness = []

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

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

[dependencies.futures]
version = "0.3"

[dependencies.hickory-resolver]
version = "0.26.1"
features = ["tokio"]
optional = true

[dependencies.rand]
version = "0.10"

[dependencies.reqwest]
version = "0.13"
features = [
    "rustls",
    "json",
    "cookies",
    "gzip",
    "brotli",
]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.stygian-browser]
version = "0.14.2"
optional = true

[dependencies.thiserror]
version = "2.0"

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

[dependencies.tokio-util]
version = "0.7"
features = ["rt"]

[dependencies.tracing]
version = "0.1"

[dependencies.ulid]
version = "1.2"

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]

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

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

[dev-dependencies.toml]
version = "1.0"

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

[lints.clippy]
multiple_crate_versions = "allow"
