Skip to content

Commit 00083cb

Browse files
DOC-5760 enabled Rust-Sync client name
1 parent ea54435 commit 00083cb

File tree

8 files changed

+34
-14
lines changed

8 files changed

+34
-14
lines changed

build/components/example.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
'c#': '//',
2828
'redisvl': '#',
2929
'php': '//',
30-
'rust': '//'
30+
'rust': '//',
31+
'rust-sync': '//',
32+
'rust-async': '//'
3133
}
3234

3335

build/local_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
'java': 'Java-Sync', # Default to sync, could be overridden
3939
'php': 'PHP',
4040
'redisvl': 'RedisVL',
41-
'rust': 'Rust'
41+
'rust': 'Rust-Sync'
4242
}
4343

4444

config.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ tagManagerId = "GTM-TKZ6J9R"
4545
gitHubRepo = "https://github.com/redis/docs"
4646

4747
# Display and sort order for client examples
48-
clientsExamples = ["Python", "Node.js", "Java-Sync", "Java-Async", "Java-Reactive", "Go", "C#", "RedisVL", "PHP", "Rust"]
48+
clientsExamples = ["Python", "Node.js", "Java-Sync", "Java-Async", "Java-Reactive", "Go", "C#", "RedisVL", "PHP", "Rust-Sync", "Rust-Async"]
4949
searchService = "/convai/api/search-service"
5050
ratingsService = "/docusight/api/rate"
5151

@@ -67,7 +67,8 @@ rdi_current_version = "1.14.1"
6767
"C#"={quickstartSlug="dotnet"}
6868
"RedisVL"={quickstartSlug="redis-vl"}
6969
"PHP"={quickstartSlug="php"}
70-
"Rust"={quickstartSlug="redis-rs"}
70+
"Rust-sync"={quickstartSlug="rust"}
71+
"Rust-async"={quickstartSlug="rust"}
7172

7273
# Markup
7374
[markup]

content/develop/clients/rust/_index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,23 @@ redis = "0.32.5"
3737

3838
Start by importing the `Commands` trait from the `redis` crate:
3939

40-
{{< clients-example set="landing" step="import" lang_filter="Rust" >}}
40+
{{< clients-example set="landing" step="import" lang_filter="Rust-Sync" >}}
4141
{{< /clients-example >}}
4242

4343
The following example shows the simplest way to connect to a Redis server:
4444

45-
{{< clients-example set="landing" step="connect" lang_filter="Rust" >}}
45+
{{< clients-example set="landing" step="connect" lang_filter="Rust-Sync" >}}
4646
{{< /clients-example >}}
4747

4848
After connecting, you can test the connection by storing and retrieving
4949
a simple [string]({{< relref "/develop/data-types/strings" >}}):
5050

51-
{{< clients-example set="landing" step="set_get_string" lang_filter="Rust" >}}
51+
{{< clients-example set="landing" step="set_get_string" lang_filter="Rust-Sync" >}}
5252
{{< /clients-example >}}
5353

5454
You can also easily store and retrieve a [hash]({{< relref "/develop/data-types/hashes" >}}):
5555

56-
{{< clients-example set="landing" step="set_get_hash" lang_filter="Rust" >}}
56+
{{< clients-example set="landing" step="set_get_hash" lang_filter="Rust-Sync" >}}
5757
{{< /clients-example >}}
5858

5959
## More information

data/components/index.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"jedis",
1616
"lettuce_async",
1717
"lettuce_reactive",
18-
"redis_vl"
18+
"redis_vl",
19+
"redis_rs_sync",
20+
"redis_rs_async"
1921
],
2022
"assets": [],
2123
"website": {
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"id": "redis_rs_async",
3+
"type": "client",
4+
"name": "redis-rs-Async",
5+
"language": "Rust-Async",
6+
"label": "Rust-Async",
7+
"repository": {
8+
"git_uri": "https://github.com/redis-rs/redis-rs"
9+
},
10+
"examples": {
11+
"git_uri": "https://github.com/redis-rs/redis-rs",
12+
"path": "redis/examples",
13+
"pattern": "*.rs"
14+
}
15+
}

data/components/redis-rs.json renamed to data/components/redis_rs_sync.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"id": "redis_rs",
2+
"id": "redis_rs_sync",
33
"type": "client",
4-
"name": "redis-rs",
5-
"language": "Rust",
6-
"label": "Rust",
4+
"name": "redis-rs-sync",
5+
"language": "Rust-Sync",
6+
"label": "Rust-Sync",
77
"repository": {
88
"git_uri": "https://github.com/redis-rs/redis-rs"
99
},

local_examples/client-specific/rust/landing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ fn main() {
9696
}
9797
}
9898
// STEP_END
99-
}
99+
}

0 commit comments

Comments
 (0)