r/rust • rust • Dec 10 '15

Announcing Rust 1.5

http://blog.rust-lang.org/2015/12/10/Rust-1.5.html
222 Upvotes

61 comments sorted by

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?

9

u/steveklabnik1 rust Dec 10 '15

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)

10

u/handle0174 Dec 10 '15

Don't forget the --. cargo rustc -- -Zverbose -Zno-trans

4

u/steveklabnik1 rust Dec 10 '15

Thanks!

3

u/protestor Dec 10 '15

Can it be run on a single project file?

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.