Adding panic_semihosting
library as a dependency
Run this command in a terminal, in your project's directory:
cargo add --dev panic-semihosting
to add it a dev dependency (if it's used only in tests, not in the final product). To add it as a regular run-time dependency, run:
cargo add panic-semihosting
To add it manually, edit your project's Cargo.toml
file and add to the [dependencies]
section:
panic-semihosting = "0.6.0"
The panic_semihosting
library will be automatically available globally.
Read the panic_semihosting
library documentation.
Back to the crate overview.