# 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"
rust-version = "1.82.0"
name = "http-cache"
version = "0.21.0"
authors = [
    "Christian Haynes <06chaynes@gmail.com>",
    "Kat Marchán <kzm@zkat.tech>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An HTTP caching middleware"
homepage = "https://http-cache.rs"
readme = "README.md"
keywords = [
    "cache",
    "http",
    "middleware",
]
categories = [
    "caching",
    "web-programming::http-client",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/06chaynes/http-cache"

[package.metadata.docs.rs]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
cacache-async-std = ["cacache/async-std"]
cacache-tokio = ["cacache/tokio-runtime"]
default = [
    "manager-cacache",
    "cacache-async-std",
]
manager-cacache = [
    "cacache",
    "bincode",
]
manager-moka = [
    "moka",
    "bincode",
]
with-http-types = ["http-types"]

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

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

[dependencies.bincode]
version = "1.3.3"
optional = true

[dependencies.cacache]
version = "13.1.0"
features = ["mmap"]
optional = true
default-features = false

[dependencies.http]
version = "1.2.0"

[dependencies.http-cache-semantics]
version = "2.1.0"

[dependencies.http-types]
version = "2.12.0"
optional = true
default-features = false

[dependencies.httpdate]
version = "1.0.3"

[dependencies.moka]
version = "0.12.10"
features = ["future"]
optional = true

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

[dependencies.url]
version = "2.5.4"
features = ["serde"]

[dev-dependencies.async-attributes]
version = "1.1.2"

[dev-dependencies.async-std]
version = "1.13.0"

[dev-dependencies.http-cache-semantics]
version = "2.1.0"

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