refactor(rust): Split large modules into modular structure#29
Merged
Conversation
Add [Alias('Bytes')] to the -ByteArray parameter in:
- ConvertFrom-ByteArrayToString
- ConvertFrom-CompressedByteArrayToString
This matches the existing pattern in ConvertFrom-ByteArrayToBase64 and
ConvertFrom-ByteArrayToMemoryStream, providing a consistent API across
all functions that accept byte array input.
Fixes #25
Split monolithic base64.rs (1,917 lines) into modular structure: - encoding.rs: encoding conversion helpers (301 lines) - string_ops.rs: string-based Base64 FFI functions (256 lines) - bytes_ops.rs: byte array-based Base64 FFI functions (156 lines) - mod.rs: module organization and re-exports (13 lines) Benefits: - Improved maintainability with clear separation of concerns - Tests co-located with implementation (Rust best practice) - Easier navigation with smaller, focused files - All 184 tests passing with no breaking changes
…st versions - Disable default features for all dependencies to reduce bloat - Enable only required features (std, alloc, rust_backend) - Update chrono 0.4.42 -> 0.4.43 - Update flate2 1.1.5 -> 1.1.8 - Pin exact versions for reproducible builds - All 184 tests pass
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Refactored three large Rust modules (encoding, hash, compression) into focused, modular structures following the pattern established with the base64 module.
Changes
Benefits
Testing