Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on Cargo

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Create a Project

cargo init
cargo new project_name
cargo new --lib project_name

Install a Rust Crate (Package)

Install a Rust crate from GitHub (the default branch).

cargo install --git https://github …