[go: up one dir, main page]

http-cache 0.11.0

An HTTP caching middleware
Documentation
[package]
name = "http-cache"
version = "0.11.0"
description = "An HTTP caching middleware"
authors = ["Christian Haynes <06chaynes@gmail.com>", "Kat Marchán <kzm@zkat.tech>"]
repository = "https://github.com/06chaynes/http-cache.git"
license = "MIT OR Apache-2.0"
readme = "README.md"
keywords = ["cache", "http", "middleware"]
categories = [
    "caching",
    "web-programming::http-client"
]
edition = "2021"
rust-version = "1.63.0"

[dependencies]
async-trait = "0.1.68"
bincode = { version = "1.3.3", optional = true }
cacache = { version = "11.4.0", optional = true }
http = "0.2.9"
http-cache-semantics = "1.0.1"
http-types = { version = "2.12.0", default-features = false, optional = true }
httpdate = "1.0.2"
moka = { version = "0.10.1", features = ["future"], optional = true }
serde = { version = "1.0.159", features = ["derive"] }
url = { version = "2.3.1", features = ["serde"] }

[features]
default = ["manager-cacache"]
manager-cacache = ["cacache", "bincode"]
manager-moka = ["moka", "bincode"]
with-http-types = ["http-types"]

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