# 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 = "smooai-fetch"
version = "3.3.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A resilient HTTP fetch client with retries, timeouts, rate limiting, and circuit breaking."
homepage = "https://github.com/SmooAI/fetch"
readme = "README.md"
keywords = [
    "fetch",
    "http",
    "retry",
    "circuit-breaker",
    "smooai",
]
categories = ["web-programming::http-client"]
license = "MIT"
repository = "https://github.com/SmooAI/fetch"

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

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

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

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

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

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

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

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

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

[dependencies.rand]
version = "0.8"

[dependencies.reqwest]
version = "0.12"
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"

[dev-dependencies.tokio]
version = "1"
features = [
    "test-util",
    "macros",
    "rt-multi-thread",
]

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