Remove reference to `cargo new` to avoid confusion. Closes #71.

This commit is contained in:
LukeMathWalker 2024-08-01 15:09:24 +02:00
parent 3f4d31148f
commit 3a9c9ea520
1 changed files with 0 additions and 15 deletions

View File

@ -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
```