Skip to content

Commit 3a9ec0e

Browse files
committed
ci: gate signature_pde_bench behind the std feature
hpc (and therefore signature_pde_sweep) is #[cfg(feature = "std")]-gated, but the new example used it unconditionally. CI runs `cargo test --package ndarray --no-default-features`, which builds every example by default regardless of default-features — breaking with "cannot find `hpc` in `ndarray`". Fix mirrors every other hpc-dependent example in this Cargo.toml (entropy_ladder_probe, instrument_mtmm_probe, cakes_grail_probe, ...): required-features = ["std"], so cargo skips the target instead of failing to compile it. Reproduced the failure locally with the exact CI invocation, confirmed the fix skips (not fails) the build under --no-default-features, and confirmed the default (std) build still compiles and runs the example, and the lib tests still pass 5/5. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KCGhDYoQBXs3poaR7sFuqp
1 parent 1307a40 commit 3a9ec0e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎Cargo.toml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ required-features = ["std"]
135135
name = "instrument_mtmm_probe"
136136
required-features = ["std"]
137137

138+
[[example]]
139+
name = "signature_pde_bench"
140+
required-features = ["std"]
141+
138142
[[example]]
139143
name = "cakes_grail_probe"
140144
required-features = ["std"]

0 commit comments

Comments
 (0)