Cargo Features

Semihosting has no features set by default.

[dependencies]
semihosting = { version = "0.1.16", features = ["alloc", "stdio", "fs", "args", "time", "panic-handler", "panic-unwind", "backtrace", "portable-atomic", "trap-hlt", "openocd-semihosting"] }
alloc panic-unwind?

Use alloc.

stdio backtrace?

Enable semihosting::io::{stdin,stdout,stderr} and semihosting::{print*,eprint*,dbg}.

fs

Enable semihosting::fs.

args

Enable semihosting::experimental::env::args.

Note: This feature is experimental and outside of the normal semver guarantees and minor or patch versions of semihosting may make breaking changes to them at any time.

time

Enable semihosting::experimental::time.

Note: This feature is experimental and outside of the normal semver guarantees and minor or patch versions of semihosting may make breaking changes to them at any time.

panic-handler panic-unwind?

Provide panic handler based on semihosting::process::exit.

If the stdio feature is enabled, this attempt to output panic message and location to stderr.

panic-unwind = alloc, panic-handler, unwinding

Provide -C panic=unwind support for panic handler and enable semihosting::experimental::panic::catch_unwind.

See readme for details.

Note: This feature is experimental and outside of the normal semver guarantees and minor or patch versions of semihosting may make breaking changes to them at any time.

Enables fde-static, panic and personality of unwinding

backtrace = stdio, unwinding

Provide backtrace support for panic handler.

See readme for details.

Note: This feature is experimental and outside of the normal semver guarantees and minor or patch versions of semihosting may make breaking changes to them at any time.

Enables hide-trace of unwinding

portable-atomic

Use portable-atomic's atomic types.

See readme for details.

Enables portable-atomic

trap-hlt

Arm-specific: Use HLT instruction on A+R profile.

See readme for details.

openocd-semihosting

Xtensa-specific: Use OpenOCD Semihosting.

See readme for details.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

unwinding backtrace? panic-unwind?