Cargo Features
[dependencies]
embedded-test = { version = "0.7.0", default-features = false, features = ["semihosting", "std", "panic-handler", "defmt", "log", "embassy", "external-executor", "ariel-os", "xtensa-semihosting"] }
- default = panic-handler, semihosting
-
These default features are set whenever
embedded-testis added withoutsomewhere in the dependency tree.default-features = false - semihosting default xtensa-semihosting?
-
use semihosting (for embedded targets)
Enables semihosting
- std
-
use std functionality
Enables linkme, serde, and serde_json, std of embedded-test-linker-script and embedded-test-macros
- panic-handler default
-
defines a panic-handler which will invoke
semihosting::process::abort()on panic - defmt
-
prints testcase exit result to defmt
Enables defmt
Optional dependencies
Affects
embedded-test::TestOutcome… - log
-
prints testcase exit result to log
Enables log
Affects
embedded-test::TestOutcome… - embassy ariel-os?
-
Enables async test and init functions using embassy-executor. Note: You need to enable at least one executor feature on embassy unless you are using the
external-executorfeatureEnables embassy-executor, embassy of embedded-test-macros
- external-executor
-
you will use your own executor by setting it via the
tasksmacro, e.g.#[embedded_test::tests(executor = esp_hal::embassy::executor::thread::Executor::new())]Enables external-executor of embedded-test-macros
- ariel-os = embassy
-
Enables Ariel OS integration
Enables ariel-os of embedded-test-macros
- xtensa-semihosting
-
enables the xtensa-specific semihosting implementation
Enables openocd-semihosting of semihosting