# 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.54.0" authors = ["James Kominick "] 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", ] [[example]] name = "redis" required-features = [ "redis_store", "proc_macro", ] [[example]] name = "redis-async" required-features = [ "async", "proc_macro", ] [[example]] name = "tokio" required-features = [ "async", "proc_macro", ] [[example]] name = "async_std" required-features = [ "async", "proc_macro", ] [[example]] name = "expiring_sized_cache" required-features = ["async_tokio_rt_multi_thread"] [dependencies.ahash] version = "0.8" optional = true default-features = false [dependencies.async-trait] version = "0.1" optional = true [dependencies.cached_proc_macro] version = "0.23.0" optional = true [dependencies.cached_proc_macro_types] version = "0.1.1" optional = true [dependencies.directories] version = "5.0" optional = true [dependencies.futures] version = "0.3" optional = true default-features = false [dependencies.hashbrown] version = "0.14" features = [ "raw", "inline-more", ] default-features = false [dependencies.once_cell] version = "1" [dependencies.r2d2] version = "0.8" optional = true [dependencies.redis] version = "0.25" 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 = "1" [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" [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_std = [ "redis_store", "async", "redis/aio", "redis/async-std-comp", "redis/tls", "redis/async-std-tls-comp", ] redis_connection_manager = [ "redis_store", "redis/connection-manager", ] redis_store = [ "redis", "r2d2", "serde", "serde_json", ] redis_tokio = [ "redis_store", "async", "redis/aio", "redis/tokio-comp", "redis/tls", "redis/tokio-native-tls-comp", ] wasm = []