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
This commit is contained in:
2026-07-21 20:45:01 +02:00
parent 484ffa4d93
commit 4a3d5b9d27
+1
View File
@@ -543,6 +543,7 @@ struct ZSTDMT_compressionJobSequenceProjection {
} }
#[inline] #[inline]
#[cfg(not(test))]
unsafe fn compression_job_sequence_projection( unsafe fn compression_job_sequence_projection(
state: *const ZSTDMT_compressionJobSequenceState, state: *const ZSTDMT_compressionJobSequenceState,
) -> Option<ZSTDMT_compressionJobSequenceProjection> { ) -> Option<ZSTDMT_compressionJobSequenceProjection> {