From 6790ef5383e6d983f1a4fc94dd123aee8ec6a87a Mon Sep 17 00:00:00 2001 From: James Date: Sun, 13 Jan 2019 04:00:16 +0000 Subject: [PATCH] cargo: add cargo new (#2704) --- pages/common/cargo.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/common/cargo.md b/pages/common/cargo.md index dbc5755ee..99b52f04b 100644 --- a/pages/common/cargo.md +++ b/pages/common/cargo.md @@ -15,13 +15,13 @@ `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: