Skip to content

Commit c742cfd

Browse files
committed
Cargo.toml: Add usage warning to MCU feature comment
MCU features should only serve as aliases, they should *not* be used in `cfg` attributes, since the resulting code would be unmaintainable in the long run.
1 parent cb54c44 commit c742cfd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ wlcsp36 = []
9494
wlcsp49 = []
9595

9696
# MCUs
97+
#
98+
# Note: These are just aliases for the proper io-* feature and physical
99+
# package. Do *not* use these features in any `cfg` attributes in the HAL!
97100
mcu-STM32L010C6Tx = ["io-STM32L031", "lqfp48"]
98101
mcu-STM32L010F4Px = ["io-STM32L021", "tssop20"]
99102
mcu-STM32L010K4Tx = ["io-STM32L021", "lqfp32"]

0 commit comments

Comments
 (0)