Commit aa4c71d
authored
refactor(rust): Split large modules into modular structure (#29)
* Add Bytes alias to ByteArray parameters for consistency
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
* chore: Bump version to 2.0.6-alpha
* refactor: modularize base64 into focused modules
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
* Optimize Rust dependencies with selective features and update to latest 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
* refactor(rust): Split encoding.rs into modular structure
* refactor(rust): Split hash.rs into modular structure
* refactor(rust): Split compression.rs into modular structure
* style(rust): Apply cargo fmt formatting1 parent 503ee9c commit aa4c71d
21 files changed
Lines changed: 3209 additions & 4567 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
0 commit comments