Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to edition 2021 #221

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 25 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,38 @@ readme = "README.md"
categories = ["caching", "data-structures"]
keywords = ["cache", "memoize", "lru", "redis", "disk"]
license = "MIT"
edition = "2018"
edition = "2021"

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

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

[dependencies.cached_proc_macro]
Expand Down Expand Up @@ -139,3 +153,7 @@ required-features = ["async", "proc_macro"]
[[example]]
name = "expiring_sized_cache"
required-features = ["async_tokio_rt_multi_thread"]

[[example]]
name = "disk"
required-features = ["disk_store"]
2 changes: 1 addition & 1 deletion cached_proc_macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"
categories = ["caching"]
keywords = ["caching", "cache", "memoize", "lru"]
license = "MIT"
edition = "2018"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion cached_proc_macro_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ readme = "README.md"
categories = ["caching"]
keywords = ["caching", "cache", "memoize", "lru"]
license = "MIT"
edition = "2018"
edition = "2021"

[dependencies]
Loading