# 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-charon"
version = "0.14.1"
authors = ["Nick Campbell <s0ma@protonmail.com>"]
build = false
exclude = [
    "docs/incident-runbook.md",
    "docs/p1-backlog.md",
    "tests/runbook_diagnostics.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Anti-bot provider fingerprinting and HAR forensics for Stygian"
readme = "README.md"
keywords = [
    "antibot",
    "forensics",
    "har",
    "scraping",
    "security",
]
categories = [
    "web-programming",
    "network-programming",
]
license = "AGPL-3.0-only OR LicenseRef-Commercial"
repository = "https://github.com/greysquirr3l/stygian"
resolver = "2"

[features]
caching = ["dep:lru"]
default = ["caching"]
live-validation = [
    "dep:reqwest",
    "dep:tokio",
]
metrics = []
redis-cache = [
    "caching",
    "dep:redis",
]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.lru]
version = "0.18"
optional = true

[dependencies.redis]
version = "1.2"
features = [
    "tokio-comp",
    "connection-manager",
]
optional = true

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.49"
features = [
    "full",
    "macros",
    "rt-multi-thread",
    "time",
]
optional = true

[dependencies.toml]
version = "1.0"

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

[lints.clippy]
multiple_crate_versions = "allow"
