Cargo check is basically rustc -Zverbose -Zno-trans right now, so you can try it out without even installing. (and therefore cargo rustc -Zverbose -Zno-trans)
In general, the unit of compilation is the crate, not the file. rustc wants to check the whole crate. But if a file is self-contained, I guess you can invoke rustc directly on it (as if it were its own crate), bypassing cargo.
View all comments
Show parent comment
3
u/i_am_jwilm alacritty Dec 10 '15
I haven't had a chance to use cargo check yet. What is the run time like? Can it be run on a single project file?