Skip to content

Commit ecb96fe

Browse files
authored
Prepare version 0.31.0 (#1635)
1 parent 2e5c35d commit ecb96fe

File tree

6 files changed

+38
-22
lines changed

6 files changed

+38
-22
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The crate is called `redis` and you can depend on it via cargo:
1515

1616
```ini
1717
[dependencies]
18-
redis = "0.30.0"
18+
redis = "0.31.0"
1919
```
2020

2121
Documentation on the library can be found at
@@ -57,13 +57,13 @@ To enable asynchronous clients, enable the relevant feature in your Cargo.toml,
5757

5858
```
5959
# if you use tokio
60-
redis = { version = "0.30.0", features = ["tokio-comp"] }
60+
redis = { version = "0.31.0", features = ["tokio-comp"] }
6161
6262
# if you use smol
63-
redis = { version = "0.30.0", features = ["smol-comp"] }
63+
redis = { version = "0.31.0", features = ["smol-comp"] }
6464
6565
# if you use async-std
66-
redis = { version = "0.30.0", features = ["async-std-comp"] }
66+
redis = { version = "0.31.0", features = ["async-std-comp"] }
6767
```
6868

6969
## Connection Pooling
@@ -72,7 +72,7 @@ When using a sync connection, it is recommended to use a connection pool in orde
7272
disconnects or multi-threaded usage. This can be done using the `r2d2` feature.
7373

7474
```
75-
redis = { version = "0.30.0", features = ["r2d2"] }
75+
redis = { version = "0.31.0", features = ["r2d2"] }
7676
```
7777

7878
For async connections, connection pooling isn't necessary, unless blocking commands are used.
@@ -94,31 +94,31 @@ Currently, `native-tls` and `rustls` are supported.
9494
To use `native-tls`:
9595

9696
```
97-
redis = { version = "0.30.0", features = ["tls-native-tls"] }
97+
redis = { version = "0.31.0", features = ["tls-native-tls"] }
9898
9999
# if you use tokio
100-
redis = { version = "0.30.0", features = ["tokio-native-tls-comp"] }
100+
redis = { version = "0.31.0", features = ["tokio-native-tls-comp"] }
101101
102102
# if you use smol
103-
redis = { version = "0.30.0", features = ["smol-native-tls-comp"] }
103+
redis = { version = "0.31.0", features = ["smol-native-tls-comp"] }
104104
105105
# if you use async-std
106-
redis = { version = "0.30.0", features = ["async-std-native-tls-comp"] }
106+
redis = { version = "0.31.0", features = ["async-std-native-tls-comp"] }
107107
```
108108

109109
To use `rustls`:
110110

111111
```
112-
redis = { version = "0.30.0", features = ["tls-rustls"] }
112+
redis = { version = "0.31.0", features = ["tls-rustls"] }
113113
114114
# if you use tokio
115-
redis = { version = "0.30.0", features = ["tokio-rustls-comp"] }
115+
redis = { version = "0.31.0", features = ["tokio-rustls-comp"] }
116116
117117
# if you use smol
118-
redis = { version = "0.30.0", features = ["smol-rustls-comp"] }
118+
redis = { version = "0.31.0", features = ["smol-rustls-comp"] }
119119
120120
# if you use async-std
121-
redis = { version = "0.30.0", features = ["async-std-rustls-comp"] }
121+
redis = { version = "0.31.0", features = ["async-std-rustls-comp"] }
122122
```
123123

124124
Add `rustls` to dependencies
@@ -159,7 +159,7 @@ let client = redis::Client::open("rediss://127.0.0.1/#insecure")?;
159159

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

162-
`redis = { version = "0.30.0", features = [ "cluster"] }`
162+
`redis = { version = "0.31.0", features = [ "cluster"] }`
163163

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

185-
`redis = { version = "0.30.0", features = [ "cluster-async", "tokio-std-comp" ] }`
185+
`redis = { version = "0.31.0", features = [ "cluster-async", "tokio-std-comp" ] }`
186186

187187
```rust
188188
use redis::cluster::ClusterClient;
@@ -202,7 +202,7 @@ async fn fetch_an_integer() -> String {
202202

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

205-
`redis = { version = "0.30.0", features = ["json"] }`
205+
`redis = { version = "0.31.0", features = ["json"] }`
206206

207207
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)
208208

redis-test/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 0.11.0 (2025-05-08)
2+
* Track redis 0.31.0 release
3+
14
### 0.10.0 (2025-04-22)
25
* Track redis 0.30.0 release
36

redis-test/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "redis-test"
3-
version = "0.10.0"
3+
version = "0.11.0"
44
edition = "2021"
55
description = "Testing helpers for the `redis` crate"
66
homepage = "https://github.com/redis-rs/redis-rs"
@@ -13,7 +13,7 @@ rust-version = "1.75"
1313
bench = false
1414

1515
[dependencies]
16-
redis = { version = "0.30", path = "../redis" }
16+
redis = { version = "0.31", path = "../redis" }
1717
bytes = { version = "1", optional = true }
1818
futures = { version = "0.3", optional = true }
1919
tempfile = "=3.19.1"
@@ -24,7 +24,7 @@ rand = "0.9"
2424
aio = ["futures", "redis/aio"]
2525

2626
[dev-dependencies]
27-
redis = { version = "0.30", path = "../redis", features = [
27+
redis = { version = "0.31", path = "../redis", features = [
2828
"aio",
2929
"tokio-comp",
3030
] }

redis/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
### 0.31.0 (2025-05-08)
2+
3+
#### Changes & Bug fixes
4+
5+
* Document variadic tuple implementations for FromRedisValue and ToRedisValue ([#1617](https://github.com/redis-rs/redis-rs/pull/1617) by @Kriskras99)
6+
* Add an optional bytes::BufMut function to RedisWrite ([#1618](https://github.com/redis-rs/redis-rs/pull/1618) by @Kriskras99)
7+
* Reorganize flag-frenzy comnfiguration ([#1620](https://github.com/redis-rs/redis-rs/pull/1620) by @nihohit)
8+
* Make `reserve_space_for_args` take a `IntoIterator` ([#1622](https://github.com/redis-rs/redis-rs/pull/1622) by @Kriskras99)
9+
* Improve Send/Sync checks. ([#1623](https://github.com/redis-rs/redis-rs/pull/1623) by @nihohit)
10+
* **BREAKING CHANGE** Remove the `ring` dependency from `rustls`. ([#1632](https://github.com/redis-rs/redis-rs/pull/1632) by @nihohit)
11+
* Implement Error::source for the RedisError struct ([#1634](https://github.com/redis-rs/redis-rs/pull/1634) by @StefanPalashev)
12+
* ConnectionManager: Reconnect when RESP3 is set. ([#1612](https://github.com/redis-rs/redis-rs/pull/1612) by @nihohit)
13+
114
### 0.30.0 (2025-04-22)
215

316
#### Changes & Bug fixes

redis/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "redis"
3-
version = "0.30.0"
3+
version = "0.31.0"
44
keywords = ["redis", "valkey", "cluster", "sentinel", "pubsub"]
55
description = "Redis driver for Rust."
66
homepage = "https://github.com/redis-rs/redis-rs"

0 commit comments

Comments
 (0)