Files
zstd-rs/lib/decompress/zstd_ddict.c
T
ddidderr c42f69e756 feat(decompress): reuse canonical Dctx view for DDict
Remove the C-only DDict offset globals and route production
ZSTD_copyDDictParameters() through the existing C-produced DCtx view.  This
keeps the private decoder layout and optional fuzzing fields owned by the
canonical projection while preserving the DDict entropy, prefix, window, and
checksum state updates.  Keep the synthetic offset writer test-only so the
Rust unit tests remain independently linkable.

Test Plan:
- ulimit -v 41943040; CARGO_BUILD_JOBS=1 cargo check --manifest-path rust/cli/Cargo.toml --all-targets
- ulimit -v 41943040; CARGO_BUILD_JOBS=1 cargo test --manifest-path rust/cli/Cargo.toml --all-targets (207 passed)
- ulimit -v 41943040; CARGO_BUILD_JOBS=1 cargo clippy --manifest-path rust/cli/Cargo.toml --all-targets -- -D warnings
- ulimit -v 41943040; CARGO_BUILD_JOBS=1 make -j1
- ulimit -v 41943040; CARGO_BUILD_JOBS=1 make -j1 -C tests test
- git diff --check
2026-07-21 14:56:19 +02:00

9 lines
375 B
C

/*
* ZSTD_DDict implementation moved to rust/src/zstd_ddict.rs.
*
* Keep this translation unit in the original source list so the C build keeps
* the same source topology while the Rust static library provides the
* exported symbols. DDict parameter copying uses the canonical C-produced
* ZSTD_rustDctxView, so this file no longer publishes private DCtx offsets.
*/