# 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 = "2021" name = "autocache" version = "0.2.1" description = "automatic cache management" readme = "README.md" keywords = ["cache"] license = "MIT" repository = "https://github.com/Yanhao/autocache.git" [dependencies.anyhow] version = "1" [dependencies.arc-swap] version = "1" [dependencies.async_singleflight] version = "0.5" [dependencies.bytes] version = "1" optional = true [dependencies.chrono] version = "0.4" [dependencies.derivative] version = "2" [dependencies.futures] version = "0.3" [dependencies.im] version = "15" optional = true [dependencies.moka] version = "0.12" features = ["sync"] optional = true [dependencies.parking_lot] version = "0.12" [dependencies.redis] version = "0.26" features = ["tokio-comp"] optional = true [dependencies.serde] version = "1" features = ["derive"] optional = true [dependencies.serde_json] version = "1" optional = true [dependencies.thiserror] version = "1" [dependencies.tokio] version = "1" features = ["full"] [dependencies.tracing] version = "0.1" [dev-dependencies.once_cell] version = "1" [dev-dependencies.tracing-subscriber] version = "0.3" [features] default = ["localcache"] localcache = ["dep:moka"] rediscache = [ "serilize", "dep:redis", ] serilize = [ "dep:serde", "dep:serde_json", "dep:bytes", ] ttlcache = ["dep:im"] twolevelcache = ["serilize"]