Skip to content

Commit cd7a929

Browse files
Remove reference to cargo new to avoid confusion. Closes mainmatter#71.
1 parent 383ac29 commit cd7a929

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

book/src/05_ticket_v2/10_packages.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,3 @@ You can override these defaults by explicitly declaring your targets in the `Car
4646
[`cargo`'s documentation](https://doc.rust-lang.org/cargo/reference/cargo-targets.html#cargo-targets) for more details.
4747

4848
Keep in mind that while a package can contain multiple crates, it can only contain one library crate.
49-
50-
## Scaffolding a new package
51-
52-
You can use `cargo` to scaffold a new package:
53-
54-
```bash
55-
cargo new my-binary
56-
```
57-
58-
This will create a new folder, `my-binary`, containing a new Rust package with the same name and a single
59-
binary crate inside. If you want to create a library crate instead, you can use the `--lib` flag:
60-
61-
```bash
62-
cargo new my-library --lib
63-
```

0 commit comments

Comments
 (0)