Skip to content

Commit

Permalink
Prepare release 0.28.0 (#1472)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihohit authored Jan 7, 2025
1 parent 778ac1a commit cba1421
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 19 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The crate is called `redis` and you can depend on it via cargo:

```ini
[dependencies]
redis = "0.27.6"
redis = "0.28.0"
```

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

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

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

```
redis = { version = "0.27.6", features = ["r2d2"] }
redis = { version = "0.28.0", features = ["r2d2"] }
```

For async connections, connection pooling isn't necessary, unless blocking commands are used.
Expand All @@ -91,25 +91,25 @@ Currently, `native-tls` and `rustls` are supported.
To use `native-tls`:

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

To use `rustls`:

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

Add `rustls` to dependencies
Expand Down Expand Up @@ -150,7 +150,7 @@ let client = redis::Client::open("rediss://127.0.0.1/#insecure")?;

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

`redis = { version = "0.27.6", features = [ "cluster"] }`
`redis = { version = "0.28.0", 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 @@ -173,7 +173,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.27.6", features = [ "cluster-async", "tokio-std-comp" ] }`
`redis = { version = "0.28.0", features = [ "cluster-async", "tokio-std-comp" ] }`

```rust
use redis::cluster::ClusterClient;
Expand All @@ -193,7 +193,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.27.6", features = ["json"] }`
`redis = { version = "0.28.0", 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
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.7.0"
version = "0.8.0"
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.75"
bench = false

[dependencies]
redis = { version = "0.27.0", path = "../redis" }
redis = { version = "0.28.0", path = "../redis" }
bytes = { version = "1", optional = true }
futures = { version = "0.3", optional = true }
tempfile = "=3.14.0"
Expand All @@ -24,7 +24,7 @@ rand = "0.8.5"
aio = ["futures", "redis/aio"]

[dev-dependencies]
redis = { version = "0.27.0", path = "../redis", features = [
redis = { version = "0.28.0", path = "../redis", features = [
"aio",
"tokio-comp",
] }
Expand Down
29 changes: 29 additions & 0 deletions redis/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
### 0.8.0 (2025-01-7)

#### Changes & Bug fixes

* ConnectionManager: reconnect on disconnect pushes ([#1407](https://github.com/redis-rs/redis-rs/pull/1407))
* ConnectionManager: Support automatic resubscription ([#1408](https://github.com/redis-rs/redis-rs/pull/1408))
* Remove async_trait dependency ([#1451](https://github.com/redis-rs/redis-rs/pull/1451))
* Expose RetryMethod to consumers ([#1454](https://github.com/redis-rs/redis-rs/pull/1454) @Braedon-Wooding-Displayr)
* Add ping support to commands & pubsubs ([#1341](https://github.com/redis-rs/redis-rs/pull/1341))
* Expose server creation logic through redis-test ([#1363](https://github.com/redis-rs/redis-rs/pull/1363))
* Depend only on the required sub-crates of futures ([#1465](https://github.com/redis-rs/redis-rs/pull/1465) @jplatte)
* **Breaking change**: Mark more `Connection` functions as deprecated ([#1468](https://github.com/redis-rs/redis-rs/pull/1468))
* Move repeated logic to function ([#1469](https://github.com/redis-rs/redis-rs/pull/1469))

#### Documentation improvements

* Update README to use rustls ([#1397](https://github.com/redis-rs/redis-rs/pull/1397) @khacminh)
* Update README.md regarding cargo-nextest ([#1445](https://github.com/redis-rs/redis-rs/pull/1445) @altanozlu)
* Improve features and TLS docs ([#1464](https://github.com/redis-rs/redis-rs/pull/1464))
* Mention Valkey in Readme ([#1467](https://github.com/redis-rs/redis-rs/pull/1467))
* Fix automatic resubscription docs ([#1450](https://github.com/redis-rs/redis-rs/pull/1450))
* Replace `get_multiplexed_tokio_connection` in examples & tests ([#1443](https://github.com/redis-rs/redis-rs/pull/1443))

#### CI improvements

* Run tests concurrently ([#1444](https://github.com/redis-rs/redis-rs/pull/1444))
* Report slow tests more eagerly ([#1441](https://github.com/redis-rs/redis-rs/pull/1441))
* Improve testing of optional features ([#1448](https://github.com/redis-rs/redis-rs/pull/1448))

### 0.27.6 (2024-12-3)

#### Changes & Bug 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.27.6"
version = "0.28.0"
keywords = ["redis", "valkey", "cluster", "sentinel", "pubsub"]
description = "Redis driver for Rust."
homepage = "https://github.com/redis-rs/redis-rs"
Expand Down

0 comments on commit cba1421

Please sign in to comment.