Skip to content

Commit 31b8b2f

Browse files
LessUpCopilot
andcommitted
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/Cargo.lock

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

algorithms/arithmetic/rust/Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@ version = "0.1.0"
44
edition = "2021"
55
rust-version = "1.70"
66

7-
[[bin]]
7+
[lib]
88
name = "arithmetic"
9-
path = "src/bin/arithmetic.rs"
10-
11-
[dependencies]
12-
compresskit-codec = { path = "../../shared/rust" }
9+
path = "src/lib.rs"
1310

1411
[dev-dependencies]

0 commit comments

Comments
 (0)