Skip to content

Commit

Permalink
Create 0.25.1 release (redis-rs#1077)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihohit committed Mar 18, 2024
1 parent 98dfc48 commit c5adb50
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

32 changes: 16 additions & 16 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.25.0"
redis = "0.25.1"
```

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.25.0", features = ["tokio-comp"] }
redis = { version = "0.25.1", features = ["tokio-comp"] }
# if you use async-std
redis = { version = "0.25.0", features = ["async-std-comp"] }
redis = { version = "0.25.1", features = ["async-std-comp"] }
```

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

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

To use `rustls`:

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

With `rustls`, you can add the following feature flags on top of other feature flags to enable additional features:

- `tls-rustls-insecure`: Allow insecure TLS connections
- `tls-rustls-webpki-roots`: Use `webpki-roots` (Mozilla's root certificates) instead of native root certificates
- `tls-rustls-insecure`: Allow insecure TLS connections
- `tls-rustls-webpki-roots`: Use `webpki-roots` (Mozilla's root certificates) instead of native root certificates

then you should be able to connect to a redis instance using the `rediss://` URL scheme:

Expand All @@ -117,7 +117,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.25.0", features = [ "cluster"] }`
`redis = { version = "0.25.1", 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 @@ -140,7 +140,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.25.0", features = [ "cluster-async", "tokio-std-comp" ] }`
`redis = { version = "0.25.1", features = [ "cluster-async", "tokio-std-comp" ] }`

```rust
use redis::cluster::ClusterClient;
Expand All @@ -160,7 +160,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.25.0", features = ["json"] }`
`redis = { version = "0.25.1", 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 Expand Up @@ -193,9 +193,9 @@ you can use the `Json` wrapper from the
To test `redis` you're going to need to be able to test with the Redis Modules, to do this
you must set the following environment variable before running the test script

- `REDIS_RS_REDIS_JSON_PATH` = The absolute path to the RedisJSON module (Either `librejson.so` for Linux or `librejson.dylib` for MacOS).
- `REDIS_RS_REDIS_JSON_PATH` = The absolute path to the RedisJSON module (Either `librejson.so` for Linux or `librejson.dylib` for MacOS).

- Please refer to this [link](https://github.com/RedisJSON/RedisJSON) to access the RedisJSON module:
- Please refer to this [link](https://github.com/RedisJSON/RedisJSON) to access the RedisJSON module:

<!-- As support for modules are added later, it would be wise to update this list -->

Expand Down
7 changes: 7 additions & 0 deletions redis/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### 0.25.1 (2024-03-12)

* Fix small disambiguity in examples ([#1072](https://github.com/redis-rs/redis-rs/pull/1072) @sunhuachuang)
* Upgrade to socket2 0.5 ([#1073](https://github.com/redis-rs/redis-rs/pull/1073) @djc)
* Avoid library dependency on futures-time ([#1074](https://github.com/redis-rs/redis-rs/pull/1074) @djc)


### 0.25.0 (2024-03-08)

#### Features
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.25.0"
version = "0.25.1"
keywords = ["redis", "database"]
description = "Redis driver for Rust."
homepage = "https://github.com/redis-rs/redis-rs"
Expand Down

0 comments on commit c5adb50

Please sign in to comment.