Commit 31b8b2f
fix(rust): reduce Rust tranche to minimal adaptation (D7-D10 spec-compliant)
Remove scope creep from Huffman/Arithmetic/RLE Rust implementations:
- Delete duplicated src/bin/*.rs CLI binaries (474+553+246 lines)
- Delete arithmetic src/lib_base.rs duplicate (253 lines)
- Replace full src/lib.rs implementations with minimal encode()/decode() helpers
- Remove Encoder/Decoder trait implementations (not required for D7-D10)
- Keep main.rs as source of truth for rustc builds
- Preserve shared Rust foundation (D1-D6) and lifecycle tests (D11)
Net change: -2300 lines by eliminating duplication.
Range adaptation unchanged (already minimal).
All tests pass:
- make test-huffman-rust test-arithmetic-rust test-rle-rust test-range-rust
- cargo test --manifest-path algorithms/shared/rust/Cargo.toml
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 4a7295e commit 31b8b2f
13 files changed
Lines changed: 300 additions & 2600 deletions
File tree
- algorithms
- arithmetic/rust
- src
- bin
- huffman/rust
- src
- bin
- rle/rust
- src
- bin
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 | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 9 | + | |
13 | 10 | | |
14 | 11 | | |
0 commit comments