Skip to content

Commit cef220e

Browse files
book: Use cargo add command
Rather than showing exact dependencies in `Cargo.toml`, use the `cargo add` command. That removes a small step of the release process.
1 parent 554eb14 commit cef220e

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.25"
22-
uefi-services = "0.22"
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)