Skip to content

book: Use cargo add command #1002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions PUBLISHING.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ you will also have to update the corresponding `Cargo.toml` of `uefi` to be:
uefi-macros = "0.6.0"
```

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

[cargo-semver]: https://doc.rust-lang.org/cargo/reference/semver.html
[semver]: https://semver.org/
Expand Down
9 changes: 3 additions & 6 deletions book/src/tutorial/app.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@ cargo new my-uefi-app
cd my-uefi-app
```

In `cargo.toml`, add a few dependencies:
Add a few dependencies:

```toml
[dependencies]
log = "0.4"
uefi = "0.26"
uefi-services = "0.23"
```sh
cargo add log uefi uefi-services
```

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