Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add rustc --run #9826
With the removal of the
The use case, of course, is some kind support for script-like usage for Rust which will become attractive when the compilation speed improves.
I was thinking that
In the latter case
referenced this issue
Mar 20, 2014
I think we should store the compiled binaries to boost the performance. That way it could easily replace small Python scripts and actually be faster to execute.
When running a rust script (with rustic shebang) called
I would like to see this behaviour merged to the main project.
No, it does not (at least not in its current incarnation). The purpose of
Tried cargo run
I agree there should be some kind of command that abstracts away the compilation part. I'm not sure this has something to do with cargo. Maybe adding a rust command:
By also adding a shebang:
We can execute by simply:
This allows distributing via compiled binaries via
cargo-script is ok but is not installed by default. I'm not sure that the all the verbosity is needed: