armature-cache 0.4.0

Cache management for Armature framework with Redis and in-memory support
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.94.1"
name = "armature-cache"
version = "0.4.0"
authors = ["Joseph Quinn <quinn.josephr@proton.me>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cache management for Armature framework with Redis and in-memory support"
homepage = "https://quinnjr.github.io/armature"
readme = "README.md"
keywords = [
    "cache",
    "redis",
    "memory",
    "distributed",
]
categories = [
    "caching",
    "web-programming",
]
license = "Apache-2.0"
repository = "https://github.com/quinnjr/armature"

[features]
default = ["redis"]
memcached = ["dep:memcache"]
memcached-tls = ["memcache/tls"]
redis = [
    "dep:redis",
    "armature-redis",
]

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

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

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

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

[dependencies.armature-log]
version = "0"

[dependencies.armature-redis]
version = "0"
optional = true

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

[dependencies.futures]
version = "0.3"

[dependencies.memcache]
version = "0.19"
optional = true
default-features = false

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

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

[dev-dependencies.testcontainers]
version = "0.27.3"

[dev-dependencies.tokio]
version = "1.52"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
    "net",
    "io-util",
    "fs",
    "test-util",
]