From 639865d13877fa7644288b0ec14d226794b0c2c6 Mon Sep 17 00:00:00 2001 From: ddidderr Date: Tue, 21 Jul 2026 10:02:24 +0200 Subject: [PATCH] docs(rust): record policy seams Synchronize the ownership map with the default-window decompression policy, the Rust-owned single-file --list ordering, and CDict match-state reset policy moved in the latest migration cycle. Test Plan: - git diff --cached --check --- rust/README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/rust/README.md b/rust/README.md index 1f0d5dfcb..c9483e83e 100644 --- a/rust/README.md +++ b/rust/README.md @@ -127,8 +127,8 @@ zstd ABI: - `zstd_decompress` owns the public decompression context, one-shot, dictionary, parameter, and streaming state machines. Its C shim retains the configuration-dependent context layout and platform details, plus - legacy and trace leaves; Rust owns the no-forward-progress threshold and - heap-mode policies, decoder storage allocation, custom memory dispatch, and the + legacy and trace leaves; Rust owns the default-window, no-forward-progress, + and heap-mode policies, decoder storage allocation, custom memory dispatch, and the `ZSTD_copyDCtx` prefix copy up to the projected `inBuff` field. - Command-line frontend - `zstd_cli` owns the Rust parser, safety policy, and dispatch. It is built @@ -141,8 +141,9 @@ zstd ABI: optional-format decompression loops, decompression result policy/final accounting, both shared- and separate-destination multi-file compression schedulers, and both shared- and separate-destination decompression - schedulers. Rust also owns the scalar compression metadata-transfer and - file-removal status policies; C retains the private stat probe, metadata operations, + schedulers. Rust also owns the per-file `--list` status/order policy, the + scalar compression metadata-transfer and file-removal status policies; C + retains the private stat probe, metadata operations, destination-name construction, and the private file/resource/format callbacks for these scheduler boundaries. Rust already owns the file preference policy, filename decisions, @@ -191,7 +192,7 @@ and advanced-CDict dictionary-content loading remain in C. Rust now owns advanced-CDict custom-memory validation, workspace-size query/allocation, allocation/create/init cleanup ordering, the CCtx workspace-size formula, the scalar CCtx-reset plan, post-match-state storage reservation order, and -match-state reset policy/order; C retains +match-state reset policy/order for both CCtx and CDict; C retains private layout-size inputs, workspace resize/layout, private field publication, and allocator callbacks. Private CCtx reset/matchfinder/workspace operations and codec/adaptive-policy