Cargo Features
[dependencies]
stm32g4xx-hal = { version = "0.0.1", default-features = false, features = ["rt", "stm32g431", "stm32g441", "stm32g471", "stm32g473", "stm32g474", "stm32g483", "stm32g484", "stm32g491", "stm32g4a1", "log-itm", "log-rtt", "log-semihost", "defmt-logging"] }
TODO: Separate feature sets
- default = rt
-
The
rt
feature is set by default wheneverstm32g4xx-hal
is added without
somewhere in the dependency tree.default-features = false - rt default
- stm32g431
- stm32g441
- stm32g471
- stm32g473
- stm32g474
- stm32g483
- stm32g484
- stm32g491
- stm32g4a1
- log-itm dev
-
Enables itm of cortex-m-log ^0.7
- log-rtt
- log-semihost dev
-
Enables semihosting of cortex-m-log ^0.7
- defmt-logging = defmt
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.