fix: gate #[mutants::skip] behind cfg(test) for downstream compat (0.3.3)
The #[mutants::skip] proc macro from the mutants dev-dep was not available to downstream users, causing compilation failure. Gate it with cfg_attr(test). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
3 files changed
+11
-3
No files matched your search
+9
-1
@@ -1,6 +1,14 @@
|
|||||||
# Changelog
|
# 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
|
### Testing
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ucobs"
|
name = "ucobs"
|
||||||
version = "0.3.2"
|
version = "0.3.3"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.93"
|
rust-version = "1.93"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|||||||
+1
-1
@@ -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.
|
/// 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)]
|
#[inline(always)]
|
||||||
#[cfg(feature = "legacy-msrv")]
|
#[cfg(feature = "legacy-msrv")]
|
||||||
const fn const_copy(dest: &mut [u8], di: usize, src: &[u8], n: usize) {
|
const fn const_copy(dest: &mut [u8], di: usize, src: &[u8], n: usize) {
|
||||||
|
|||||||
Reference in new issue
Block a user