From 912f27eeb16ad8bb1104a7af5fa6285b11c39b50 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Sun, 12 Nov 2023 15:16:58 -0500 Subject: [PATCH] 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. --- PUBLISHING.md | 3 +-- book/src/tutorial/app.md | 9 +++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/PUBLISHING.md b/PUBLISHING.md index 19458cc35..f968b710d 100644 --- a/PUBLISHING.md +++ b/PUBLISHING.md @@ -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/ diff --git a/book/src/tutorial/app.md b/book/src/tutorial/app.md index ba0b80e35..9d2a84e56 100644 --- a/book/src/tutorial/app.md +++ b/book/src/tutorial/app.md @@ -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: