Rust and Cargo 1 · Build and run

Run with arguments

Pass arguments to your program after the double dash.

cargo run --release -- --port 8080

Official Rust and Cargo 1 documentation

More build and run commands

All build and run commands · Rust and Cargo 1 cheatsheet

Was this page helpful?