Skip to content

Commit 75a8510

Browse files
committed
semihosting: add comment adding feature flag to panic-semihosting
This wasn't entirely trivial to find if you've never worked with feature flags for dependencies. Hopefully it helps others out there. Signed-off-by: Antonio Gutierrez <[email protected]>
1 parent c5da1e1 commit 75a8510

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/start/semihosting.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,16 @@ panicked at 'assertion failed: `(left == right)`
130130
$ echo $?
131131
1
132132
```
133+
134+
**NOTE**: To enable this feature on `panic-semihosting`, edit your
135+
`Cargo.toml` dependencies section where `panic-semihosting` is specified with:
136+
137+
``` toml
138+
panic-semihosting = { version = "VERSION", features = ["exit"] }
139+
```
140+
141+
where `VERSION` is the version desired. For more information on dependencies
142+
features check the [`specifying dependencies`] section of the Cargo book.
143+
144+
[`specifying dependencies`]:
145+
https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html

0 commit comments

Comments
 (0)