@ehuss: This is just a general issue on figuring out what cargo test should do with a no_std target.
This bug originates from a stack overflow thread in that my minimal project, that is building an application for the x86_64-unknown-uefi target, cannot execute cargo test. The crate itself uses the build-std feature in .config/cargo.toml. When tests are executed, the compiler complains about can't find crate for 'test'. If I add test to the build-std-array, therefore,
[unstable]
build-std = [
"alloc",
"compiler_builtins",
"core",
+ "test",
]
the compiler tells I should add #![feature(restricted_std)] . If I do so, nothing changes. I found the bug with Rust/Cargo 1.55-nightly
Expected Behaviour
One should be able to execute tests when build-std is used.
@ehuss: This is just a general issue on figuring out what
cargo testshould do with a no_std target.This bug originates from a stack overflow thread in that my minimal project, that is building an application for the
x86_64-unknown-uefitarget, cannot executecargo test. The crate itself uses thebuild-stdfeature in.config/cargo.toml. When tests are executed, the compiler complains aboutcan't find crate for 'test'. If I addtestto thebuild-std-array, therefore,the compiler tells I should add
#![feature(restricted_std)]. If I do so, nothing changes. I found the bug with Rust/Cargo 1.55-nightlyExpected Behaviour
One should be able to execute tests when
build-stdis used.