Files
zstd-rs/lib/legacy/zstd_v06.c
T
ddidderr 66b7858728 feat(legacy): port the v0.5 and v0.6 decoders to Rust
Replace the v0.5 and v0.6 legacy decoder translation units with Rust modules
and keep only narrow C registration shims for the public legacy dispatch ABI.

Test Plan:
- RUSTC_WRAPPER= CARGO_BUILD_RUSTC_WRAPPER= cargo test --manifest-path rust/Cargo.toml --features compression,decompression,dict-builder,legacy-v05,legacy-v06,legacy-v07
- RUSTC_WRAPPER= CARGO_BUILD_RUSTC_WRAPPER= cargo clippy --manifest-path rust/Cargo.toml --all-targets --features compression,decompression,dict-builder,legacy-v05,legacy-v06,legacy-v07 -- -D warnings
- make -C tests check V=1
2026-07-12 18:07:37 +02:00

20 lines
788 B
C

/*
* Copyright (c) Yann Collet, Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under both the BSD-style license (found in the
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
* in the COPYING file in the root directory of this source tree).
* You may select, at your option, one or both licenses.
*/
#include <stddef.h> /* size_t */
#include "zstd_v06.h"
#include "../common/compiler.h"
#include "../common/error_private.h"
/* Implementation moved to Rust (rust/src/legacy/zstd_v06.rs).
* The frozen v0.6 decoder, including its embedded FSE/Huff0 snapshot, frame
* state, and buffered streaming context, now lives entirely in Rust; this
* translation unit remains a declaration-only ABI shim. */