git clone https://github.com/ExpHP/frunk -b broken-nostd
Here is a crate whose
#[no_std] support is clearly broken.
frunk_core (located under
std all over the place and has un-
cfg-ed usage of
cargo test --no-default-features succeeds! How can this be? The answer is because
--no-default-features does not actually disable the
std feature, due to a circular dependency in
dev-dependencies that accidentally reenables it.
I’ve fixed this by pruning the internal dependencies and drenching them in
default-features = false, but it feels fragile. How can I write a failing test case for the above branch?