From 625b1298760a3f7ae67e32f9516e3bf753b805a9 Mon Sep 17 00:00:00 2001 From: ddidderr Date: Mon, 20 Jul 2026 13:37:31 +0200 Subject: [PATCH] fix(compress): import context parameter policy constant Import the no-attach-dictionary mode constant used by the new direct ZSTD_getCParamsFromCCtxParams() projection test. The implementation was correct, but the test module did not inherit that constant through the existing parameter imports, so the root crate could not compile. Test Plan: - `git diff --cached --check` -- passed. - Root capped clippy rerun after this commit. --- rust/src/zstd_compress_params_api.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/src/zstd_compress_params_api.rs b/rust/src/zstd_compress_params_api.rs index 7afb83e9a..c6c6b9a0c 100644 --- a/rust/src/zstd_compress_params_api.rs +++ b/rust/src/zstd_compress_params_api.rs @@ -21,7 +21,8 @@ use crate::zstd_compress_params::{ ZSTD_rust_params_resolveEnableLdm, ZSTD_rust_params_resolveExternalRepcodeSearch, ZSTD_rust_params_resolveExternalSequenceValidation, ZSTD_rust_params_resolveMaxBlockSize, ZSTD_rust_params_resolveRowMatchFinderMode, ZSTD_CONTENTSIZE_UNKNOWN, - ZSTD_RUST_CPM_CREATE_CDICT, ZSTD_RUST_PS_AUTO, ZSTD_RUST_PS_DISABLE, ZSTD_RUST_PS_ENABLE, + ZSTD_RUST_CPM_CREATE_CDICT, ZSTD_RUST_CPM_NO_ATTACH_DICT, ZSTD_RUST_PS_AUTO, + ZSTD_RUST_PS_DISABLE, ZSTD_RUST_PS_ENABLE, }; use std::mem::size_of; use std::os::raw::{c_int, c_void};