umbral-cache 0.0.12

Pluggable cache backend for umbral. In-memory, SQLite, and Redis backends, plus view-level cache_page middleware.
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"
rust-version = "1.85"
name = "umbral-cache"
version = "0.0.12"
authors = ["Dalmas Ogembo <dalmasogembo@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pluggable cache backend for umbral. In-memory, SQLite, and Redis backends, plus view-level cache_page middleware."
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/dalmasonto/umbral"

[features]
default = []
redis = ["dep:redis"]

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

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

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

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

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

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

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

[dependencies.axum]
version = "0.8"

[dependencies.bytes]
version = "1"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.futures-util]
version = "0.3"
features = ["alloc"]
default-features = false

[dependencies.http]
version = "1"

[dependencies.http-body-util]
version = "0.1"

[dependencies.redis]
version = "0.27"
features = [
    "tokio-comp",
    "connection-manager",
]
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.sqlx]
version = "0.8"
features = [
    "sqlite",
    "runtime-tokio",
    "chrono",
]

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "rt",
    "macros",
]

[dependencies.tower]
version = "0.5"
default-features = false

[dependencies.tower-http]
version = "0.6"
features = [
    "compression-gzip",
    "compression-br",
    "compression-deflate",
    "compression-zstd",
    "set-header",
]

[dependencies.tracing]
version = "0.1"

[dependencies.umbral]
version = "0.0.12"

[dev-dependencies.axum]
version = "0.8"

[dev-dependencies.flate2]
version = "1"

[dev-dependencies.http]
version = "1"

[dev-dependencies.http-body-util]
version = "0.1"

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

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

[dev-dependencies.tower]
version = "0.5"
features = ["util"]