Skip to content

Commit fb7e306

Browse files
DOC-5760 added async example support
1 parent 00083cb commit fb7e306

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

build/local_examples.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ def get_client_name_from_language_and_path(language: str, path: str) -> str:
6767
return 'Java-Async'
6868
if 'lettuce-reactive' in path:
6969
return 'Java-Reactive'
70+
if language == 'rust':
71+
if 'rust-async' in path:
72+
return 'Rust-Async'
73+
if 'rust-sync' in path:
74+
return 'Rust-Sync'
7075
# Default behavior for all languages (and Java fallback)
7176
return get_client_name_from_language(language)
7277

data/components/redis_rs_async.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "redis_rs_async",
33
"type": "client",
4-
"name": "redis-rs-Async",
4+
"name": "redis-rs-async",
55
"language": "Rust-Async",
66
"label": "Rust-Async",
77
"repository": {

0 commit comments

Comments
 (0)