-
Notifications
You must be signed in to change notification settings - Fork 92
Rust clean up - Refactor Redis connection handling and remove ACL and script features #3976
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
avifenesh
merged 2 commits into
valkey-io:main
from
avifenesh:feature/remove-unused-redis-rs-features
May 29, 2025
Merged
Rust clean up - Refactor Redis connection handling and remove ACL and script features #3976
avifenesh
merged 2 commits into
valkey-io:main
from
avifenesh:feature/remove-unused-redis-rs-features
May 29, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7d48dab
to
6f41d51
Compare
27dd570
to
a0cd3cb
Compare
barshaul
reviewed
May 27, 2025
barshaul
reviewed
May 27, 2025
barshaul
reviewed
May 27, 2025
barshaul
reviewed
May 27, 2025
95d3b34
to
d2a6f7f
Compare
barshaul
reviewed
May 27, 2025
barshaul
reviewed
May 27, 2025
barshaul
requested changes
May 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some comments inline
efd1953
to
f654523
Compare
- Removed ACL command implementations from `mod.rs` and associated tests. - Cleaned up connection handling in `connection.rs` by simplifying TLS configuration. - Deleted the `script.rs` module and its related tests - Updated various test files to remove references to script-related tests. - Adjusted cluster tests to improve key handling and slot calculations. - Enhanced utility functions for better TLS setup in tests. Signed-off-by: Avi Fenesh <[email protected]>
f654523
to
2f57463
Compare
- Updated various dependencies in Cargo.toml to use more concise version specifications. - Removed geospatial example and related commands from the Redis crate. - Eliminated geospatial-related tests and support files. - Refactored random number generation to use the new `rand::rng()` method. Signed-off-by: Avi Fenesh <[email protected]>
@barshaul ready |
barshaul
approved these changes
May 29, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Optimization
Optimization matter such as cleaner code, performance etc
Rust
Pull requests that update rust code
Users Pain
An issue known to cause users pain, generaly open by the user.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The goal is to do small iteration and to remove dead code from redis-rs, to enhance the ability to maintain the code, and to reduce the size.
Our code size, for languages which aim to create smaller bundles and to run on dockers/lambda/any other bundled code, like python and Node.js, is a considerable chunk. We have many users comparing our code to other libraries and complaining.
While our code will stay more heavy than other packages, the current size reaches 6 MB, and has no logical reason to do so.
Most of our rust code is a dead code.
By iterating feature by feature we should clean up this code, for better user experience, build time, developer experience and maintainability.
Cleaning redis-rs code:
Issue link
This Pull Request is linked to issue #3650
Checklist
Before submitting the PR make sure the following are checked: