# 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 = "anyhttp"
version = "0.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async HTTP requests without locking into a specific HTTP library"
readme = "README.md"
keywords = [
    "http",
    "client",
    "async",
    "reqwest",
]
categories = [
    "network-programming",
    "web-programming::http-client",
]
license = "MIT"
repository = "https://github.com/quaero-search/anyhttp"

[features]
default = []
mock = []
reqwest = ["dep:reqwest"]
stream = [
    "dep:futures",
    "reqwest?/stream",
]

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

[[example]]
name = "mock_example"
path = "examples/mock_example.rs"
required-features = ["mock"]

[[example]]
name = "reqwest_example"
path = "examples/reqwest_example.rs"
required-features = ["reqwest"]

[dependencies.anyhow]
version = "1.0.100"

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

[dependencies.bytes]
version = "1.11.0"

[dependencies.futures]
version = "0.3.31"
optional = true

[dependencies.http]
version = "1.3.1"

[dependencies.reqwest]
version = "0.12.24"
optional = true

[dependencies.url]
version = "2.5.7"

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