From d8a8c1a4498f022494f1de3cbac9207d4c167650 Mon Sep 17 00:00:00 2001 From: Tatsuya Kawano Date: Tue, 5 Jul 2022 17:09:27 +0800 Subject: [PATCH] Update hard-coded version numbers in the README and doc comments --- README.md | 10 +++++----- src/future/builder.rs | 2 +- src/future/cache.rs | 14 +++++++------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 9299e301..9cf70bb5 100644 --- a/README.md +++ b/README.md @@ -113,14 +113,14 @@ Add this to your `Cargo.toml`: ```toml [dependencies] -moka = "0.8" +moka = "0.9" ``` To use the asynchronous cache, enable a crate feature called "future". ```toml [dependencies] -moka = { version = "0.8", features = ["future"] } +moka = { version = "0.9", features = ["future"] } ``` @@ -222,7 +222,7 @@ Here is a similar program to the previous example, but using asynchronous cache // Cargo.toml // // [dependencies] -// moka = { version = "0.8", features = ["future"] } +// moka = { version = "0.9", features = ["future"] } // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] } // futures-util = "0.3" @@ -495,9 +495,9 @@ to the dependency declaration. ```toml:Cargo.toml [dependencies] -moka = { version = "0.8", default-feautures = false } +moka = { version = "0.9", default-feautures = false } # Or -moka = { version = "0.8", default-feautures = false, features = ["future"] } +moka = { version = "0.9", default-feautures = false, features = ["future"] } ``` This will make Moka to switch to a fall-back implementation, so it will compile. diff --git a/src/future/builder.rs b/src/future/builder.rs index 9bade8e2..fcb536f5 100644 --- a/src/future/builder.rs +++ b/src/future/builder.rs @@ -22,7 +22,7 @@ use std::{ /// // Cargo.toml /// // /// // [dependencies] -/// // moka = { version = "0.8", features = ["future"] } +/// // moka = { version = "0.9", features = ["future"] } /// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] } /// // futures = "0.3" /// diff --git a/src/future/cache.rs b/src/future/cache.rs index 2b6240eb..3defc6df 100644 --- a/src/future/cache.rs +++ b/src/future/cache.rs @@ -75,7 +75,7 @@ use std::{ /// // Cargo.toml /// // /// // [dependencies] -/// // moka = { version = "0.8", features = ["future"] } +/// // moka = { version = "0.9", features = ["future"] } /// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] } /// // futures-util = "0.3" /// @@ -159,7 +159,7 @@ use std::{ /// // Cargo.toml /// // /// // [dependencies] -/// // moka = { version = "0.8", features = ["future"] } +/// // moka = { version = "0.9", features = ["future"] } /// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] } /// // futures-util = "0.3" /// @@ -221,7 +221,7 @@ use std::{ /// // Cargo.toml /// // /// // [dependencies] -/// // moka = { version = "0.8", features = ["future"] } +/// // moka = { version = "0.9", features = ["future"] } /// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] } /// // futures-util = "0.3" /// @@ -585,7 +585,7 @@ impl Cache { /// // Cargo.toml /// // /// // [dependencies] - /// // moka = { version = "0.8", features = ["future"] } + /// // moka = { version = "0.9", features = ["future"] } /// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] } /// use moka::future::Cache; /// @@ -773,7 +773,7 @@ where /// // Cargo.toml /// // /// // [dependencies] - /// // moka = { version = "0.8", features = ["future"] } + /// // moka = { version = "0.9", features = ["future"] } /// // futures-util = "0.3" /// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] } /// use moka::future::Cache; @@ -883,7 +883,7 @@ where /// // Cargo.toml /// // /// // [dependencies] - /// // moka = { version = "0.8", features = ["future"] } + /// // moka = { version = "0.9", features = ["future"] } /// // futures-util = "0.3" /// // reqwest = "0.11" /// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] } @@ -1105,7 +1105,7 @@ where /// // Cargo.toml /// // /// // [dependencies] - /// // moka = { version = "0.8.2", features = ["future"] } + /// // moka = { version = "0.9", features = ["future"] } /// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] } /// use moka::future::Cache; ///