Skip to content

Commit

Permalink
Release redis-0.22.0 / redis-test-0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymell authored and djc committed Oct 14, 2022
1 parent 0da6040 commit 175395e
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 16 deletions.
16 changes: 8 additions & 8 deletions README.md
Expand Up @@ -14,7 +14,7 @@ The crate is called `redis` and you can depend on it via cargo:

```ini
[dependencies]
redis = "0.21.5"
redis = "0.22.0"
```

Documentation on the library can be found at
Expand Down Expand Up @@ -54,24 +54,24 @@ To enable asynchronous clients a feature for the underlying feature need to be a

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

## TLS Support

To enable TLS support, you need to use the relevant feature entry in your Cargo.toml.

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

then you should be able to connect to a redis instance using the `rediss://` URL scheme:
Expand All @@ -84,7 +84,7 @@ let client = redis::Client::open("rediss://127.0.0.1/")?;

Cluster mode can be used by specifying "cluster" as a features entry in your Cargo.toml.

`redis = { version = "0.21.5", features = [ "cluster"] }`
`redis = { version = "0.22.0", features = [ "cluster"] }`

Then you can simply use the `ClusterClient` which accepts a list of available nodes.

Expand All @@ -107,7 +107,7 @@ 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.17.0", features = ["json"] }`
`redis = { version = "0.22.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
8 changes: 8 additions & 0 deletions redis-test/CHANGELOG.md
@@ -0,0 +1,8 @@
<a name="0.1.0"></a>
### 0.1.0 (2022-10-05)

This is the initial release of the redis-test crate, which aims to provide mocking
for connections and commands. Thanks @tdyas!

#### Features
* Testing module with support for mocking redis connections and commands ([#465](https://github.com/redis-rs/redis-rs/pull/465) @tdyas)
7 changes: 4 additions & 3 deletions redis-test/Cargo.toml
@@ -1,15 +1,16 @@
[package]
name = "redis-test"
version = "0.1.0"
edition = "2018"
edition = "2021"
description = "Testing helpers for the `redis` crate"
homepage = "https://github.com/redis-rs/redis-rs"
repository = "https://github.com/redis-rs/redis-rs"
documentation = "https://docs.rs/redis-test"
license = "BSD-3-Clause"
rust-version = "1.59"

[dependencies]
redis = { version = "0.21.5", path = "../redis" }
redis = { version = "0.22.0", path = "../redis" }

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

[dev-dependencies]
redis = { version = "0.21.5", path = "../redis", features = ["aio", "tokio-comp"] }
redis = { version = "0.22.0", path = "../redis", features = ["aio", "tokio-comp"] }
tokio = { version = "1", features = ["rt", "macros", "rt-multi-thread"] }

1 change: 1 addition & 0 deletions redis-test/release.toml
@@ -0,0 +1 @@
tag-name = "redis-test-{{version}}"
46 changes: 45 additions & 1 deletion CHANGELOG.md → redis/CHANGELOG.md
@@ -1,9 +1,53 @@
<a name="0.22.0"></a>
### 0.22.0 (2022-10-05)

This release adds various incremental improvements, including
additional convenience commands, improved Cluster APIs, and various other bug
fixes/library improvements.

Although the changes here are incremental, this is a major release due to the
breaking changes listed below.

This release would not be possible without our many wonderful
contributors -- thank you!

#### Breaking changes
* Box all large enum variants; changes enum signature ([#667](https://github.com/redis-rs/redis-rs/pull/667) @nihohit)
* Support ACL commands by adding Rule::Other to cover newly defined flags; adds new enum variant ([#685](https://github.com/redis-rs/redis-rs/pull/685) @garyhai)
* Switch from sha1 to sha1_smol; renames `sha1` feature ([#576](https://github.com/redis-rs/redis-rs/pull/576))

#### Features
* Add support for RedisJSON ([#657](https://github.com/redis-rs/redis-rs/pull/657) @d3rpp)
* Add support for weights in zunionstore and zinterstore ([#641](https://github.com/redis-rs/redis-rs/pull/641) @ndd7xv)
* Cluster: Create read_from_replicas option ([#635](https://github.com/redis-rs/redis-rs/pull/635) @utkarshgupta137)
* Make Direction a public enum to use with Commands like BLMOVE ([#646](https://github.com/redis-rs/redis-rs/pull/646) @thorbadour)
* Add `ahash` feature for using ahash internally & for redis values ([#636](https://github.com/redis-rs/redis-rs/pull/636) @utkarshgupta137)
* Add Script::load function ([#603](https://github.com/redis-rs/redis-rs/pull/603) @zhiburt)
* Add support for OBJECT ([[#610]](https://github.com/redis-rs/redis-rs/pull/610) @roger)
* Add GETEX and GETDEL support ([#582](https://github.com/redis-rs/redis-rs/pull/582) @arpandaze)
* Add support for ZMPOP ([#605](https://github.com/redis-rs/redis-rs/pull/605) @gkorland)

#### Changes
* Rust 2021 Edition / MSRV 1.59.0
* Fix: Support IPV6 link-local address parsing ([#679](https://github.com/redis-rs/redis-rs/pull/679) @buaazp)
* Derive Clone and add Deref trait to InfoDict ([#661](https://github.com/redis-rs/redis-rs/pull/661) @danni-m)
* ClusterClient: add handling for empty initial_nodes, use ClusterParams to store cluster parameters, improve builder pattern ([#669](https://github.com/redis-rs/redis-rs/pull/669) @utkarshgupta137)
* Implement Debug for MultiplexedConnection & Pipeline ([#664](https://github.com/redis-rs/redis-rs/pull/664) @elpiel)
* Add support for casting RedisResult to CString ([#660](https://github.com/redis-rs/redis-rs/pull/660) @nihohit)
* Move redis crate to subdirectory to support multiple crates in project ([#465](https://github.com/redis-rs/redis-rs/pull/465) @tdyas)
* Stop versioning Cargo.lock ([#620](https://github.com/redis-rs/redis-rs/pull/620))
* Auto-implement ConnectionLike for DerefMut ([#567](https://github.com/redis-rs/redis-rs/pull/567) @holmesmr)
* Return errors from parsing inner items ([#608](https://github.com/redis-rs/redis-rs/pull/608))
* Make dns resolution async, in async runtime ([#606](https://github.com/redis-rs/redis-rs/pull/606) @roger)
* Make async_trait dependency optional ([#572](https://github.com/redis-rs/redis-rs/pull/572) @kamulos)
* Add username to ClusterClient and ClusterConnection ([#596](https://github.com/redis-rs/redis-rs/pull/596) @gildaf)


<a name="0.21.6"></a>
### 0.21.6 (2022-08-24)

* Update dependencies ([#588](https://github.com/mitsuhiko/redis-rs/pull/588))


<a name="0.21.5"></a>
### 0.21.5 (2022-01-10)

Expand Down
4 changes: 2 additions & 2 deletions redis/Cargo.toml
@@ -1,13 +1,13 @@
[package]
name = "redis"
version = "0.21.5"
version = "0.22.0"
keywords = ["redis", "database"]
description = "Redis driver for Rust."
homepage = "https://github.com/redis-rs/redis-rs"
repository = "https://github.com/redis-rs/redis-rs"
documentation = "https://docs.rs/redis"
license = "BSD-3-Clause"
edition = "2018"
edition = "2021"
rust-version = "1.59"

[package.metadata.docs.rs]
Expand Down
2 changes: 2 additions & 0 deletions redis/release.toml
@@ -0,0 +1,2 @@
pre-release-hook = "../scripts/update-versions.sh"
tag-name = "{{version}}"
2 changes: 0 additions & 2 deletions release.toml

This file was deleted.

0 comments on commit 175395e

Please sign in to comment.