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 whenever stm32g4xx-hal is added without default-features = false somewhere in the dependency tree.

rt default

Enables rt of stm32g4 ^0.15.1

stm32g431

Enables stm32g431 of stm32g4 ^0.15.1

stm32g441

Enables stm32g441 of stm32g4 ^0.15.1

stm32g471

Enables stm32g471 of stm32g4 ^0.15.1

stm32g473

Enables stm32g473 of stm32g4 ^0.15.1

stm32g474

Enables stm32g474 of stm32g4 ^0.15.1

stm32g483

Enables stm32g483 of stm32g4 ^0.15.1

stm32g484

Enables stm32g484 of stm32g4 ^0.15.1

stm32g491

Enables stm32g491 of stm32g4 ^0.15.1

stm32g4a1

Enables stm32g4a1 of stm32g4 ^0.15.1

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.

defmt defmt-logging?

Enables defmt ^0.3.2