rust: pin-init: feature-gate the `stack_init_reuse` test on the `std` feature
authorBenno Lossin <lossin@kernel.org>
Mon, 9 Jun 2025 14:17:35 +0000 (16:17 +0200)
committerBenno Lossin <lossin@kernel.org>
Wed, 11 Jun 2025 19:13:56 +0000 (21:13 +0200)
commitb3b4f760ccf2d08ff3db0f094c32ce70bba2eb15
treeea26c2f5863acf813808805d2e06eecd43fcc76e
parent2408678d700c4db6c54749a272d42a964f5f3418
rust: pin-init: feature-gate the `stack_init_reuse` test on the `std` feature

When trying to run `cargo check --all-targets --no-default-features`, an
error is reported by the test, as it cannot find the `std` crate. This
is to be expected, since the `--no-default-features` flag enables the
`no-std` behavior of the crate. Thus exclude the test in that scenario.

Link: https://github.com/Rust-for-Linux/pin-init/pull/50/commits/2813729ccacdedee9dbfcab1ed285b8721a0391b
Link: https://lore.kernel.org/all/20250523125424.192843-4-lossin@kernel.org
[ Changed my author email address to @kernel.org. - Benno ]
Signed-off-by: Benno Lossin <lossin@kernel.org>
rust/pin-init/src/__internal.rs