From 3a9c9ea5209279462ed34b8ce71679f15b226e70 Mon Sep 17 00:00:00 2001 From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Thu, 1 Aug 2024 15:09:24 +0200 Subject: [PATCH] Remove reference to `cargo new` to avoid confusion. Closes #71. --- book/src/05_ticket_v2/10_packages.md | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/book/src/05_ticket_v2/10_packages.md b/book/src/05_ticket_v2/10_packages.md index dc0ef51..b62093a 100644 --- a/book/src/05_ticket_v2/10_packages.md +++ b/book/src/05_ticket_v2/10_packages.md @@ -46,18 +46,3 @@ You can override these defaults by explicitly declaring your targets in the `Car [`cargo`'s documentation](https://doc.rust-lang.org/cargo/reference/cargo-targets.html#cargo-targets) for more details. Keep in mind that while a package can contain multiple crates, it can only contain one library crate. - -## Scaffolding a new package - -You can use `cargo` to scaffold a new package: - -```bash -cargo new my-binary -``` - -This will create a new folder, `my-binary`, containing a new Rust package with the same name and a single -binary crate inside. If you want to create a library crate instead, you can use the `--lib` flag: - -```bash -cargo new my-library --lib -``` -- 2.45.2