Skip to content

Conversation

andy-stark-redis
Copy link
Contributor

@andy-stark-redis andy-stark-redis commented Oct 1, 2025

Proposed improvement is to structure Rust example files as test modules so that we can add the usual asserts and run them with the standard Rust testing system. Also, if you enable the "Test Explorer" option in the rust-analyzer extension in VSCode, you get the usual test arrows, etc, in the editor for test modules.

Staging: https://redis.io/docs/staging/DOC-5785-rust-example-format/develop/clients/rust/

@andy-stark-redis andy-stark-redis self-assigned this Oct 1, 2025
@andy-stark-redis andy-stark-redis added the clients Client library docs label Oct 1, 2025
Copy link
Contributor

github-actions bot commented Oct 1, 2025

DOC-5785

Copy link
Collaborator

@dwdougherty dwdougherty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@andy-stark-redis
Copy link
Contributor Author

Thanks @dwdougherty !

@andy-stark-redis andy-stark-redis merged commit 4734658 into main Oct 1, 2025
8 checks passed
@andy-stark-redis andy-stark-redis deleted the DOC-5785-rust-example-format branch October 1, 2025 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clients Client library docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants