Skip to content

Commit 60fbc6b

Browse files
authored
Note about feature flags for uefi book
1 parent af7ae1d commit 60fbc6b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

book/src/tutorial/app.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ Add a few dependencies:
1919
cargo add log uefi
2020
```
2121

22+
You'll need to add some feature flags and configuration to Cargo.toml as well:
23+
```toml
24+
[dependencies]
25+
log = "0.4.21"
26+
uefi = { version = "0.28.0", features = [ "panic_handler", "logger" ] }
27+
28+
[profile.dev]
29+
panic="abort"
30+
```
31+
2232
Replace the contents of `src/main.rs` with this:
2333

2434
```rust

0 commit comments

Comments
 (0)