diff --git a/CHANGELOG.md b/CHANGELOG.md index d012007..32aa58d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ # Changelog -## 0.3.2 — 2026-04-01 +## 0.3.3 — 2026-04-01 + +### Fixed + +- **Fix compilation for downstream users** — `#[mutants::skip]` attribute was + not gated behind `cfg(test)`, causing unresolved module error when ucobs is + used as a dependency. + +## 0.3.2 — 2026-04-01 (yanked) ### Testing diff --git a/Cargo.toml b/Cargo.toml index f2c1a37..4f74aea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ucobs" -version = "0.3.2" +version = "0.3.3" edition = "2021" rust-version = "1.93" license = "MIT" diff --git a/src/lib.rs b/src/lib.rs index 334e0ff..2a47dfb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -167,7 +167,7 @@ const fn const_copy(dest: &mut [u8], di: usize, src: &[u8], n: usize) { } /// Fallback const copy for toolchains older than Rust 1.93. -#[mutants::skip] // dead code under default features; tested via --features legacy-msrv +#[cfg_attr(test, mutants::skip)] // dead code under default features #[inline(always)] #[cfg(feature = "legacy-msrv")] const fn const_copy(dest: &mut [u8], di: usize, src: &[u8], n: usize) {