cargo check
Checks the code for errors without building a program.
cargo check runs the compiler's analysis without generating an executable, which is faster than cargo build.
Loading interactive…
Examples
cargo checkprintsChecking hello v0.1.0and reports the same errors ascargo build, but writes no executable totarget/debug.
See also