ddidderr
ba7cc52bcc
feat(compress): move CDict size aggregation to Rust
Keep ZSTD_sizeof_CDict's public behavior and workspace-sensitive layout
accounting in C, while routing its final two-size_t addition through the
Rust compression ABI. The Rust helper uses wrapping_add so its result
matches C size_t arithmetic, including overflow.
Test Plan:
- `cargo clippy --manifest-path rust/Cargo.toml --no-default-features --features compression` -- passed before and after formatting
- `cargo clippy --manifest-path rust/Cargo.toml --no-default-features --features compression --benches` -- passed before and after formatting
- `cargo clippy --manifest-path rust/Cargo.toml --no-default-features --features compression --tests` -- passed before and after formatting
- `cargo +nightly fmt --manifest-path rust/Cargo.toml` -- passed
- `cargo test --manifest-path rust/Cargo.toml --no-default-features --features compression sizeof_cdict` -- 3 passed
- `make -B -C lib -j2 lib` -- passed
- `make -C tests test-rust-lib-smoke` -- passed
- `tests/fuzzer -s4560 -t56 -i57 -v` -- passed
- `make -C tests -j2 test-zstream` -- 84 named, 6,809 and 9,613 randomized passed
- `git diff --check` and `git diff --cached --check` -- passed
2026-07-18 12:44:53 +02:00
..
2023-01-04 13:01:54 -08:00
2026-07-10 20:32:18 +02:00
2026-07-10 20:06:25 +02:00
2024-11-26 11:15:39 +01:00
2026-07-10 21:54:23 +02:00
2026-07-18 06:03:39 +02:00
2026-07-10 22:07:27 +02:00
2023-01-12 15:41:08 -08:00
2026-07-10 22:44:39 +02:00
2024-12-20 10:36:56 -08:00
2026-07-11 23:11:57 +02:00
2023-01-04 13:01:54 -08:00
2026-07-18 12:44:53 +02:00
2024-12-19 16:00:11 -08:00
2026-07-11 08:05:25 +02:00
2025-01-07 10:06:08 -08:00
2026-07-10 22:46:15 +02:00
2025-01-07 10:06:08 -08:00
2026-07-11 08:06:30 +02:00
2025-01-07 10:06:08 -08:00
2023-01-04 13:01:54 -08:00
2026-07-11 09:03:41 +02:00
2025-01-07 10:06:08 -08:00
2026-07-12 09:51:45 +02:00
2025-01-07 10:06:08 -08:00
2026-07-10 21:28:56 +02:00
2024-12-19 16:00:11 -08:00
2026-07-18 12:06:25 +02:00
2026-07-18 01:40:18 +02:00