Cargo New Project
To create a new Rust project
# A binary
cargo new foo
# OR A library
cargo new --lib foo
After the above commands, you should see a file hierarchy like this
foo
├── Cargo.toml
└── src
└── main.rs
To create a new Rust project
# A binary
cargo new foo
# OR A library
cargo new --lib foo
After the above commands, you should see a file hierarchy like this
foo
├── Cargo.toml
└── src
└── main.rs