Skip to content

Latest commit

 

History

History
40 lines (36 loc) · 806 Bytes

README.md

File metadata and controls

40 lines (36 loc) · 806 Bytes

Hello Cargo

This project serves as Cargo reference.

cargo --version
cargo new PROJECT_NAME

GIT files won’t be generated if you run cargo new within an existing GIT repository; you can override this behavior by using cargo new --vcs=[git|hg|pijul|fossil|none] NOTE: git is a common version control system; you can change cargo new to use a different version control system or no version-control-system by using:

cargo new PROJECT_NAME --vcs=none
cargo new LIB --lib
cargo add CRATE_NAME
cargo update
cargo update -p CRATE_NAME

cargo check
cargo build
cargo run

cargo check --release
cargo build --release
cargo run --release

cargo clean
cargo clean --release

cargo doc
cargo doc --open
cargo doc --release
cargo doc --release --open