cargo: add cargo new (#2704)

This commit is contained in:
James
2019-01-13 04:00:16 +00:00
committed by Agniva De Sarker
parent 97bfe0a76e
commit 6790ef5383

View File

@@ -15,13 +15,13 @@
`cargo install --list` `cargo install --list`
- Create a new binary Rust project in the current directory: - Create a new binary or library Rust project in the current directory:
`cargo init --bin` `cargo init --{{bin|lib}}`
- Create a new library Rust project in the current directory: - Create a new binary or library Rust project in the specified directory:
`cargo init` `cargo new {{path/to/directory}} --{{bin|lib}}`
- Build the Rust project in the current directory: - Build the Rust project in the current directory: