You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Connect your Rust application to a Redis database
13
+
linkTitle: redis-rs (Rust)
14
+
title: redis-rs guide (Rust)
15
+
weight: 9
16
+
---
17
+
18
+
[`redis-rs`](https://github.com/redis-rs/redis-rs) is the [Rust](https://www.rust-lang.org/) client for Redis.
19
+
The sections below explain how to install `redis-rs` and connect your application to a Redis database.
20
+
21
+
{{< note >}}Although we provide basic documentation for `redis-rs`, it is a third-party
22
+
client library and is not developed or supported directly by Redis.
23
+
{{< /note >}}
24
+
25
+
`redis-rs` requires a running Redis server. See [here]({{< relref "/operate/oss_and_stack/install/" >}}) for Redis Open Source installation instructions.
26
+
27
+
## Install
28
+
29
+
Add the `redis` crate as a dependency in your `Cargo.toml` file:
30
+
31
+
```toml
32
+
[dependencies]
33
+
redis = "0.32.5"
34
+
```
35
+
36
+
## Connect
37
+
38
+
Start by importing the `Commands` trait from the `redis` crate:
0 commit comments