Skip to content

Commit

Permalink
Release redis 0.23.3 / redis-test 0.2.3 (redis-rs#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymell authored Sep 1, 2023
1 parent 9e336aa commit 85960f4
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 18 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The crate is called `redis` and you can depend on it via cargo:

```ini
[dependencies]
redis = "0.23.2"
redis = "0.23.3"
```

Documentation on the library can be found at
Expand Down Expand Up @@ -59,10 +59,10 @@ To enable asynchronous clients, enable the relevant feature in your Cargo.toml,

```
# if you use tokio
redis = { version = "0.23.2", features = ["tokio-comp"] }
redis = { version = "0.23.3", features = ["tokio-comp"] }
# if you use async-std
redis = { version = "0.23.2", features = ["async-std-comp"] }
redis = { version = "0.23.3", features = ["async-std-comp"] }
```

## TLS Support
Expand All @@ -73,25 +73,25 @@ Currently, `native-tls` and `rustls` are supported.
To use `native-tls`:

```
redis = { version = "0.23.2", features = ["tls-native-tls"] }
redis = { version = "0.23.3", features = ["tls-native-tls"] }
# if you use tokio
redis = { version = "0.23.2", features = ["tokio-native-tls-comp"] }
redis = { version = "0.23.3", features = ["tokio-native-tls-comp"] }
# if you use async-std
redis = { version = "0.23.2", features = ["async-std-native-tls-comp"] }
redis = { version = "0.23.3", features = ["async-std-native-tls-comp"] }
```

To use `rustls`:

```
redis = { version = "0.23.2", features = ["tls-rustls"] }
redis = { version = "0.23.3", features = ["tls-rustls"] }
# if you use tokio
redis = { version = "0.23.2", features = ["tokio-rustls-comp"] }
redis = { version = "0.23.3", features = ["tokio-rustls-comp"] }
# if you use async-std
redis = { version = "0.23.2", features = ["async-std-rustls-comp"] }
redis = { version = "0.23.3", features = ["async-std-rustls-comp"] }
```

With `rustls`, you can add the following feature flags on top of other feature flags to enable additional features:
Expand All @@ -111,7 +111,7 @@ let client = redis::Client::open("rediss://127.0.0.1/")?;

Support for Redis Cluster can be enabled by enabling the `cluster` feature in your Cargo.toml:

`redis = { version = "0.23.2", features = [ "cluster"] }`
`redis = { version = "0.23.3", features = [ "cluster"] }`

Then you can simply use the `ClusterClient`, which accepts a list of available nodes. Note
that only one node in the cluster needs to be specified when instantiating the client, though
Expand All @@ -134,7 +134,7 @@ fn fetch_an_integer() -> String {
Async Redis Cluster support can be enabled by enabling the `cluster-async` feature, along
with your preferred async runtime, e.g.:

`redis = { version = "0.23.2", features = [ "cluster-async", "tokio-std-comp" ] }`
`redis = { version = "0.23.3", features = [ "cluster-async", "tokio-std-comp" ] }`

```rust
use redis::cluster::ClusterClient;
Expand All @@ -154,7 +154,7 @@ async fn fetch_an_integer() -> String {

Support for the RedisJSON Module can be enabled by specifying "json" as a feature in your Cargo.toml.

`redis = { version = "0.23.2", features = ["json"] }`
`redis = { version = "0.23.3", features = ["json"] }`

Then you can simply import the `JsonCommands` trait which will add the `json` commands to all Redis Connections (not to be confused with just `Commands` which only adds the default commands)

Expand Down
4 changes: 3 additions & 1 deletion redis-test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<a name="0.2.1"></a>
### 0.2.3 (2023-09-01)

* Track redis 0.23.3 release

### 0.2.2 (2023-08-10)

Expand Down
6 changes: 3 additions & 3 deletions redis-test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "redis-test"
version = "0.2.2"
version = "0.2.3"
edition = "2021"
description = "Testing helpers for the `redis` crate"
homepage = "https://github.com/redis-rs/redis-rs"
Expand All @@ -13,7 +13,7 @@ rust-version = "1.63"
bench = false

[dependencies]
redis = { version = "0.23.2", path = "../redis" }
redis = { version = "0.23.3", path = "../redis" }

bytes = { version = "1", optional = true }
futures = { version = "0.3", optional = true }
Expand All @@ -22,5 +22,5 @@ futures = { version = "0.3", optional = true }
aio = ["futures", "redis/aio"]

[dev-dependencies]
redis = { version = "0.23.2", path = "../redis", features = ["aio", "tokio-comp"] }
redis = { version = "0.23.3", path = "../redis", features = ["aio", "tokio-comp"] }
tokio = { version = "1", features = ["rt", "macros", "rt-multi-thread"] }
19 changes: 18 additions & 1 deletion redis/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<a name="0.23.1"></a>
### 0.23.3 (2023-09-01)

Note that this release fixes a small regression in async Redis Cluster handling of the `PING` command.
Based on updated response aggregation logic in [#888](https://github.com/redis-rs/redis-rs/pull/888), it
will again return a single response instead of an array.

#### Features
* Add `key_type` command ([#933](https://github.com/redis-rs/redis-rs/pull/933) @bruaba)
* Async cluster: Group responses by response_policy. ([#888](https://github.com/redis-rs/redis-rs/pull/888))

#### Fixes
* Remove unnecessary heap allocation ([#939](https://github.com/redis-rs/redis-rs/pull/939) @thechampagne)
* Sentinel tests: Ensure no ports are used twice ([#915](https://github.com/redis-rs/redis-rs/pull/915))
* Fix lint issues ([#937](https://github.com/redis-rs/redis-rs/pull/937))
* Fix JSON serialization error test ([#928](https://github.com/redis-rs/redis-rs/pull/928))
* Remove unused dependencies ([#916](https://github.com/redis-rs/redis-rs/pull/916))

<a name="0.23.2"></a>
### 0.23.2 (2023-08-10)

#### Fixes
Expand Down
2 changes: 1 addition & 1 deletion redis/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "redis"
version = "0.23.2"
version = "0.23.3"
keywords = ["redis", "database"]
description = "Redis driver for Rust."
homepage = "https://github.com/redis-rs/redis-rs"
Expand Down

0 comments on commit 85960f4

Please sign in to comment.