cargo new <name> --bin
Sources live inside src
and the Cargo.toml
file contains info about the project.
cargo build
This command will output a target
directory and file named Cargo.lock
. To
build a binary for release, append the --release
argument.
cargo run
for developmentcargo run --release
for release