From 75a8510f597c6c930dd133dba516fa54b2990ec3 Mon Sep 17 00:00:00 2001 From: Antonio Gutierrez Date: Sat, 10 Aug 2019 01:03:43 +0200 Subject: [PATCH] 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 --- src/start/semihosting.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/start/semihosting.md b/src/start/semihosting.md index 87134e6e..b4257e6f 100644 --- a/src/start/semihosting.md +++ b/src/start/semihosting.md @@ -130,3 +130,16 @@ panicked at 'assertion failed: `(left == right)` $ echo $? 1 ``` + +**NOTE**: To enable this feature on `panic-semihosting`, edit your +`Cargo.toml` dependencies section where `panic-semihosting` is specified with: + +``` toml +panic-semihosting = { version = "VERSION", features = ["exit"] } +``` + +where `VERSION` is the version desired. For more information on dependencies +features check the [`specifying dependencies`] section of the Cargo book. + +[`specifying dependencies`]: +https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html