# 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 = "2021"
name = "flaresolverr-rs"
version = "0.2.2"
build = false
exclude = [
    "PLAN.md",
    "bench/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cloudflare bypass library and FlareSolverr-compatible HTTP proxy"
readme = "README.md"
keywords = [
    "cloudflare",
    "flaresolverr",
    "bypass",
    "scraping",
    "chromium",
]
categories = [
    "web-programming",
    "web-programming::http-client",
]
license = "MIT"
repository = "https://github.com/eben0/flaresolverr-rs"

[features]
default = ["server"]
server = [
    "dep:axum",
    "dep:figment",
    "dep:tracing-subscriber",
]

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

[[bin]]
name = "flaresolverr-rs"
path = "src/main.rs"
required-features = ["server"]

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

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

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

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

[[test]]
name = "prowlarr"
path = "integration/prowlarr.rs"

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.chaser-cf]
version = "0.2.1"

[dependencies.dashmap]
version = "6"

[dependencies.figment]
version = "0.10"
features = [
    "toml",
    "env",
]
optional = true

[dependencies.reqwest]
version = "0.13"
features = ["json"]

[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",
    "json",
]
optional = true

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

[dev-dependencies.dotenvy]
version = "0.15"

[dev-dependencies.serde_yaml]
version = "0.9"
