# 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 = "cache-any" version = "1.1.3" authors = ["caojen "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A cache library for Rust" readme = "README.md" keywords = [ "cache", "async", "redis", "mysql", ] license = "MIT" repository = "https://github.com/caojen/cache-any" resolver = "2" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "cache_any" path = "src/lib.rs" [[example]] name = "memory" path = "examples/memory.rs" [dependencies.anyhow] version = "1.0" [dependencies.async-trait] version = "0.1" [dependencies.byteorder] version = "1.5" features = ["i128"] [dependencies.hex] version = "0.4" [dependencies.redis] version = "0.27.5" features = [ "tokio-comp", "tokio-rustls-comp", "aio", ] optional = true [dependencies.sqlx] version = "0.8.2" features = [ "runtime-tokio", "tls-rustls", "mysql", ] optional = true [dependencies.tokio] version = "1.41" features = ["sync"] [dev-dependencies.rand] version = "0.8.5" [dev-dependencies.serde] version = "1" features = ["derive"] [dev-dependencies.serde_json] version = "1" [dev-dependencies.tokio] version = "1.41.1" features = ["full"] [features] default = ["full"] full = [ "redis", "mysql", ] mysql = ["sqlx"]