diff --git a/crates/zstd-compat/Cargo.toml b/crates/zstd-compat/Cargo.toml index 5827dfe38c..0167f5180a 100644 --- a/crates/zstd-compat/Cargo.toml +++ b/crates/zstd-compat/Cargo.toml @@ -29,6 +29,8 @@ zdict_builder = ["zstd_fixed/zdict_builder"] zstdmt = ["zstd_fixed/zstdmt"] [dev-dependencies] +# Enables zstd-safe's `seekable` feature for tests/security.rs. The test imports +# `zstd_safe::seekable` directly so cargo-shear treats this as a used dependency. zstd-safe = { version = "8.3.0", features = ["seekable"] } toml = "1.2.2" semver = "1.0.28" diff --git a/crates/zstd-compat/tests/security.rs b/crates/zstd-compat/tests/security.rs index 65af70fa8f..cc77046dc2 100644 --- a/crates/zstd-compat/tests/security.rs +++ b/crates/zstd-compat/tests/security.rs @@ -86,7 +86,7 @@ fn corrupt_legacy_frame_cannot_emit_bytes_when_writer_is_dropped() { #[test] fn seekable_offsets_past_eof_keep_vec_length_within_capacity() { - use zstd::zstd_safe::seekable::{Seekable, SeekableCStream}; + use zstd_safe::seekable::{Seekable, SeekableCStream}; let source = b"seekable frame fixture with enough data for several independent frames"; let mut encoded = [0; 1024];