Skip to content

Commit 14ea7fc

Browse files
Merge pull request #1002 from nicholasbishop/bishop-cargo-add
book: Use `cargo add` command
2 parents 87fe728 + 912f27e commit 14ea7fc

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

PUBLISHING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ you will also have to update the corresponding `Cargo.toml` of `uefi` to be:
4646
uefi-macros = "0.6.0"
4747
```
4848

49-
The dependencies in `template/Cargo.toml` and `book/src/tutorial/app.md` should
50-
also be updated to the new version.
49+
The dependencies in `template/Cargo.toml` should also be updated to the new version.
5150

5251
[cargo-semver]: https://doc.rust-lang.org/cargo/reference/semver.html
5352
[semver]: https://semver.org/

book/src/tutorial/app.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,10 @@ cargo new my-uefi-app
1313
cd my-uefi-app
1414
```
1515

16-
In `cargo.toml`, add a few dependencies:
16+
Add a few dependencies:
1717

18-
```toml
19-
[dependencies]
20-
log = "0.4"
21-
uefi = "0.26"
22-
uefi-services = "0.23"
18+
```sh
19+
cargo add log uefi uefi-services
2320
```
2421

2522
Replace the contents of `src/main.rs` with this:

0 commit comments

Comments
 (0)