I can run tests after also meddling with a different target for cargo test. But now I find myself inserting #[cfg...] before every use core::... and its corresponding use std::.... This looks clumsy, is there any better way to do this?
That seems not working. Say I have a function called xyz that needs core::..., so there's use core::... on top of the file. By placing use std::... in the test function won't prevent rust from picking up the core::... imports when compling xyz, will it?