Cargo Features

stm32l1 = { version = "0.15.1", default-features = false, features = ["rt", "stm32l100", "stm32l151", "stm32l162"] }
default = rt

The rt feature is set by default whenever stm32l1 is added without default-features = false somewhere in the dependency tree.

rt default

Enables device of cortex-m-rt


Affects stm32l1::stm32l100


Affects stm32l1::stm32l151


Affects stm32l1::stm32l162

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

cortex-m-rt rt