It is not safe to do cargo test only. You want to keep it as cargo build && cargo test.
As @kornel wrote, it is possible for cargo test to work but break cargo build as in the following minimal example.
#[cfg(test)]
struct A;
type B = A;
It is not safe to do cargo test only. You want to keep it as cargo build && cargo test.
As @kornel wrote, it is possible for cargo test to work but break cargo build as in the following minimal example.
#[cfg(test)]
struct A;
type B = A;