From 4a3d5b9d27f1040489f22a65ee3046744733c48c Mon Sep 17 00:00:00 2001 From: ddidderr Date: Tue, 21 Jul 2026 20:45:01 +0200 Subject: [PATCH] fix(mt): gate production-only sequence projection Keep the MT sequence-state projection helper available to the C ABI orchestration while excluding it from the standalone Rust test target, where the production entry point is intentionally not compiled. This keeps the capped Rust test check warning-free without changing runtime behavior or the C layout contract. Test Plan: - ulimit -v 41943040; CARGO_BUILD_JOBS=1 cargo check --manifest-path rust/Cargo.toml --tests - git diff --check --- rust/src/zstdmt_compress.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/src/zstdmt_compress.rs b/rust/src/zstdmt_compress.rs index 5da5eccf8..a81454e2c 100644 --- a/rust/src/zstdmt_compress.rs +++ b/rust/src/zstdmt_compress.rs @@ -543,6 +543,7 @@ struct ZSTDMT_compressionJobSequenceProjection { } #[inline] +#[cfg(not(test))] unsafe fn compression_job_sequence_projection( state: *const ZSTDMT_compressionJobSequenceState, ) -> Option {