From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Thu, 1 Aug 2024 13:09:24 +0000 (+0200) Subject: Remove reference to `cargo new` to avoid confusion. Closes #71. X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=3a9c9ea5209279462ed34b8ce71679f15b226e70;p=rust_exercises.git Remove reference to `cargo new` to avoid confusion. Closes #71. --- 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 -```