This is a wrapper around cargo rustc -- -Zno-trans
.
It can be helpful for running a faster compile if you
only need correctness checks.
cargo build --release
target/release/cargo-check
into your $PATH
Note that additonal cargo rustc
options can still be passed through.
In other words, this:
cargo check -v -- -Zprint-link-args
Should do the same thing as this:
cargo rustc -v -- -Zprint-link-args -Zno-trans
And this:
cargo check --lib
Will do the same thing as this:
cargo rustc --lib -- -Zno-trans