cached 0.58.0

Generic cache implementations and simplified function memoization
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 = "2018"
name = "cached"
version = "0.58.0"
authors = ["James Kominick <james@kominick.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generic cache implementations and simplified function memoization"
documentation = "https://docs.rs/cached"
readme = "README.md"
keywords = [
    "cache",
    "memoize",
    "lru",
    "redis",
    "disk",
]
categories = [
    "caching",
    "data-structures",
]
license = "MIT"
repository = "https://github.com/jaemk/cached"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
ahash = [
    "dep:ahash",
    "hashbrown/default",
]
async = [
    "futures",
    "tokio",
    "async-trait",
]
async_tokio_rt_multi_thread = [
    "async",
    "tokio/rt-multi-thread",
]
default = [
    "proc_macro",
    "ahash",
]
disk_store = [
    "sled",
    "serde",
    "rmp-serde",
    "directories",
]
proc_macro = [
    "cached_proc_macro",
    "cached_proc_macro_types",
]
redis_ahash = [
    "redis_store",
    "redis/ahash",
]
redis_async_cache = ["redis/cache-aio"]
redis_connection_manager = [
    "redis_store",
    "redis/connection-manager",
]
redis_smol = [
    "redis_store",
    "async",
    "redis/smol-native-tls-comp",
]
redis_store = [
    "redis",
    "r2d2",
    "serde",
    "serde_json",
]
redis_tokio = [
    "redis_store",
    "async",
    "redis/tokio-native-tls-comp",
]
wasm = []

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

[[example]]
name = "async_std"
path = "examples/async_std.rs"
required-features = [
    "async",
    "proc_macro",
]

[[example]]
name = "basic"
path = "examples/basic.rs"

[[example]]
name = "basic_proc_macro"
path = "examples/basic_proc_macro.rs"

[[example]]
name = "disk"
path = "examples/disk.rs"
required-features = ["disk_store"]

[[example]]
name = "expiring_sized_cache"
path = "examples/expiring_sized_cache.rs"
required-features = ["async_tokio_rt_multi_thread"]

[[example]]
name = "kitchen_sink"
path = "examples/kitchen_sink.rs"

[[example]]
name = "kitchen_sink_proc_macro"
path = "examples/kitchen_sink_proc_macro.rs"

[[example]]
name = "redis"
path = "examples/redis.rs"
required-features = [
    "redis_store",
    "proc_macro",
]

[[example]]
name = "redis-async"
path = "examples/redis-async.rs"
required-features = [
    "async",
    "proc_macro",
]

[[example]]
name = "tokio"
path = "examples/tokio.rs"
required-features = [
    "async",
    "proc_macro",
]

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

[dependencies.ahash]
version = "0.8"
optional = true
default-features = false

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

[dependencies.cached_proc_macro]
version = "0.26.0"
optional = true

[dependencies.cached_proc_macro_types]
version = "0.1.1"
optional = true

[dependencies.directories]
version = "6.0"
optional = true

[dependencies.futures]
version = "0.3"
optional = true
default-features = false

[dependencies.hashbrown]
version = "0.16"
features = ["inline-more"]
default-features = false

[dependencies.once_cell]
version = "1"

[dependencies.parking_lot]
version = "0.12.5"

[dependencies.r2d2]
version = "0.8"
optional = true

[dependencies.redis]
version = "1.0"
features = ["r2d2"]
optional = true

[dependencies.rmp-serde]
version = "1.1"
optional = true

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

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

[dependencies.sled]
version = "0.34"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "time",
    "sync",
    "parking_lot",
]
optional = true

[dependencies.web-time]
version = "^1.1.0"

[dev-dependencies.async-std]
version = "1.6"
features = ["attributes"]

[dev-dependencies.copy_dir]
version = "0.1.3"

[dev-dependencies.googletest]
version = "0.11.0"

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

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

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