How to Run a Rust Program with cargo run
· 4 min read
cargo run builds a Rust program when its code has changed and then runs it, all in one command. A few options cover almost everything else: -q to hide Cargo's own messages, -- to pass arguments to your program, and --release for a fast, optimized build.
