Skip to content

Commit

Permalink
Bump the version to v0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuya6502 committed Feb 6, 2023
1 parent 0e07eba commit 4fd5ae8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "moka"
version = "0.9.7"
version = "0.10.0"
edition = "2018"
rust-version = "1.51"

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ Add this to your `Cargo.toml`:

```toml
[dependencies]
moka = "0.9"
moka = "0.10"
```

To use the asynchronous cache, enable a crate feature called "future".

```toml
[dependencies]
moka = { version = "0.9", features = ["future"] }
moka = { version = "0.10", features = ["future"] }
```


Expand Down Expand Up @@ -265,7 +265,7 @@ Here is a similar program to the previous example, but using asynchronous cache
// Cargo.toml
//
// [dependencies]
// moka = { version = "0.9", features = ["future"] }
// moka = { version = "0.10", features = ["future"] }
// tokio = { version = "1", features = ["rt-multi-thread", "macros" ] }
// futures-util = "0.3"
Expand Down Expand Up @@ -535,9 +535,9 @@ to the dependency declaration.

```toml:Cargo.toml
[dependencies]
moka = { version = "0.9", default-feautures = false }
moka = { version = "0.10", default-features = false }
# Or
moka = { version = "0.9", default-feautures = false, features = ["future"] }
moka = { version = "0.10", default-features = false, features = ["future"] }
```

This will make Moka to switch to a fall-back implementation, so it will compile.
Expand Down
2 changes: 1 addition & 1 deletion src/future/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use std::{
/// // Cargo.toml
/// //
/// // [dependencies]
/// // moka = { version = "0.9", features = ["future"] }
/// // moka = { version = "0.10", features = ["future"] }
/// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] }
/// // futures = "0.3"
///
Expand Down
16 changes: 8 additions & 8 deletions src/future/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ use std::{
/// // Cargo.toml
/// //
/// // [dependencies]
/// // moka = { version = "0.9", features = ["future"] }
/// // moka = { version = "0.10", features = ["future"] }
/// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] }
/// // futures-util = "0.3"
///
Expand Down Expand Up @@ -163,7 +163,7 @@ use std::{
/// // Cargo.toml
/// //
/// // [dependencies]
/// // moka = { version = "0.9", features = ["future"] }
/// // moka = { version = "0.10", features = ["future"] }
/// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] }
/// // futures-util = "0.3"
///
Expand Down Expand Up @@ -225,7 +225,7 @@ use std::{
/// // Cargo.toml
/// //
/// // [dependencies]
/// // moka = { version = "0.9", features = ["future"] }
/// // moka = { version = "0.10", features = ["future"] }
/// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] }
/// // futures-util = "0.3"
///
Expand Down Expand Up @@ -589,7 +589,7 @@ impl<K, V, S> Cache<K, V, S> {
/// // Cargo.toml
/// //
/// // [dependencies]
/// // moka = { version = "0.9", features = ["future"] }
/// // moka = { version = "0.10", features = ["future"] }
/// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] }
/// use moka::future::Cache;
///
Expand Down Expand Up @@ -848,7 +848,7 @@ where
/// // Cargo.toml
/// //
/// // [dependencies]
/// // moka = { version = "0.9", features = ["future"] }
/// // moka = { version = "0.10", features = ["future"] }
/// // futures-util = "0.3"
/// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] }
/// use moka::future::Cache;
Expand Down Expand Up @@ -975,7 +975,7 @@ where
/// // Cargo.toml
/// //
/// // [dependencies]
/// // moka = { version = "0.9", features = ["future"] }
/// // moka = { version = "0.10", features = ["future"] }
/// // futures-util = "0.3"
/// // reqwest = "0.11"
/// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] }
Expand Down Expand Up @@ -1099,7 +1099,7 @@ where
/// // Cargo.toml
/// //
/// // [dependencies]
/// // moka = { version = "0.9", features = ["future"] }
/// // moka = { version = "0.10", features = ["future"] }
/// // futures-util = "0.3"
/// // reqwest = "0.11"
/// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] }
Expand Down Expand Up @@ -1362,7 +1362,7 @@ where
/// // Cargo.toml
/// //
/// // [dependencies]
/// // moka = { version = "0.9", features = ["future"] }
/// // moka = { version = "0.10", features = ["future"] }
/// // tokio = { version = "1", features = ["rt-multi-thread", "macros" ] }
/// use moka::future::Cache;
///
Expand Down

0 comments on commit 4fd5ae8

Please sign in to comment.