trillium-cache 0.2.1

http cache handler for trillium.rs
Documentation
# 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 = "trillium-cache"
version = "0.2.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "http cache handler for trillium.rs"
readme = "README.md"
keywords = [
    "trillium",
    "cache",
    "http",
]
categories = [
    "caching",
    "web-programming::http-client",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/trillium-rs/trillium-cache"

[package.metadata.cargo-udeps.ignore]
development = ["trillium-cache"]

[package.metadata.docs.rs]
features = [
    "client",
    "fs",
    "smol",
]

[features]
async-std = [
    "fs",
    "dep:async-std",
]
client = ["dep:trillium-client"]
fs = [
    "dep:rkyv",
    "dep:sha2",
    "dep:cfg-if",
    "trillium-http/rkyv_08",
]
smol = [
    "fs",
    "dep:async-fs",
]
tokio = [
    "fs",
    "dep:tokio",
    "dep:async-compat",
    "trillium-testing/tokio",
]

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

[[example]]
name = "conformance_proxy"
path = "examples/conformance_proxy.rs"
required-features = ["client"]

[[example]]
name = "proxy_cache"
path = "examples/proxy_cache.rs"
required-features = ["client"]

[[example]]
name = "tiered_cache"
path = "examples/tiered_cache.rs"
required-features = [
    "smol",
    "client",
]

[dependencies.async-compat]
version = "0.2.5"
optional = true

[dependencies.async-fs]
version = "2.2.0"
optional = true

[dependencies.async-std]
version = "1.13.2"
optional = true

[dependencies.cfg-if]
version = "1.0.4"
optional = true

[dependencies.fieldwork]
version = "0.5.2"

[dependencies.futures-lite]
version = "2.6.1"

[dependencies.httpdate]
version = "1.0.3"

[dependencies.log]
version = "0.4.29"

[dependencies.moka]
version = "0.12.15"
features = [
    "future",
    "sync",
]

[dependencies.rkyv]
version = "0.8.17"
optional = true

[dependencies.sha2]
version = "0.10.9"
optional = true

[dependencies.tokio]
version = "1.50.0"
features = [
    "fs",
    "io-util",
]
optional = true

[dependencies.trillium]
version = "1"

[dependencies.trillium-caching-headers]
version = "0.4"

[dependencies.trillium-client]
version = "0.9"
optional = true

[dependencies.trillium-http]
version = "1.4"
features = ["unstable"]

[dependencies.trillium-server-common]
version = "0.7"

[dependencies.url]
version = "2.5.8"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.trillium-proxy]
version = "0.8"

[dev-dependencies.trillium-smol]
version = "0.6.1"

[dev-dependencies.trillium-testing]
version = "0.10"