nidus-cache 1.0.4

Official cache adapter primitives for Nidus, including Moka-backed cache modules.
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.96"
name = "nidus-cache"
version = "1.0.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Official cache adapter primitives for Nidus, including Moka-backed cache modules."
homepage = "https://rustnidus.com/"
documentation = "https://docs.rs/nidus-cache"
readme = "README.md"
keywords = [
    "framework",
    "axum",
    "di",
    "http",
    "backend",
]
categories = [
    "web-programming::http-server",
    "asynchronous",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/vicotrbb/nidus"
resolver = "2"

[features]
default = ["moka"]
health = ["dep:nidus-http"]
moka = ["dep:moka"]
observability = ["dep:nidus-observability"]

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

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

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

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

[dependencies.nidus-core]
version = "1.0.4"

[dependencies.nidus-http]
version = "1.0.4"
optional = true

[dependencies.nidus-observability]
version = "1.0.4"
optional = true

[dependencies.thiserror]
version = "2"

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