cachified 0.0.1-alpha.2

A Rust port of the cachified library
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 = "cachified"
version = "0.0.1-alpha.2"
authors = ["Marvin Witt <contact@nurmarv.in>"]
build = false
exclude = [
    "tests/*",
    "examples/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust port of the cachified library"
documentation = "https://docs.rs/cachified"
readme = "README.md"
keywords = [
    "cache",
    "caching",
    "ttl",
    "swr",
]
categories = [
    "caching",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/NurMarvin/cachified-rs"

[features]
default = [
    "serde",
    "moka",
]
moka = ["dep:moka"]
redis = ["dep:redis"]
serde = [
    "dep:serde",
    "dep:serde_json",
]
tracing = ["dep:tracing"]

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

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

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

[dependencies.redis]
version = "0.31"
features = ["tokio-comp"]
optional = true

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

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.0"
features = ["full"]

[dependencies.tracing]
version = "0.1"
optional = true

[dev-dependencies.assert_matches]
version = "1.5"

[dev-dependencies.tokio-test]
version = "0.4"