Skip to content

Glossary: Rust Beyond the Basics

cargo run --bin

Also written: --bin, src/bin

Runs one of the programs in `src/bin/`, each file being its own program, for example `cargo run --bin ch10_server`.

Where the book teaches it

Related terms

cargo add