summaryrefslogtreecommitdiff
path: root/stm32-metapac
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2022-02-09 00:28:05 +0100
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2022-02-09 00:28:05 +0100
commit4d73d87b40ae9530681c8d0461810aae85430669 (patch)
treea4e89d12a8420a0d0cb47d009b7b14dc8dca7439 /stm32-metapac
parent2cf79f6569a7d65d70599a62642c7bc353abd692 (diff)
downloadembassy-4d73d87b40ae9530681c8d0461810aae85430669.zip
stm32-metapac: add option to generate chip metadata as a rust const.
Diffstat (limited to 'stm32-metapac')
-rw-r--r--stm32-metapac/Cargo.toml8
1 files changed, 6 insertions, 2 deletions
diff --git a/stm32-metapac/Cargo.toml b/stm32-metapac/Cargo.toml
index 4115da34..5642af46 100644
--- a/stm32-metapac/Cargo.toml
+++ b/stm32-metapac/Cargo.toml
@@ -19,10 +19,14 @@ regex = "1.5.4"
default = ["pac"]
# Build the actual PAC. Set by default.
-# If not set, only the macrotables will be generated. You may want to not set it
-# if you're using stm32-metapac from a build.rs script to use the macros.
+# If you just want the metadata, unset it with `default-features = false`.
pac = []
+# Build the chip metadata.
+# If set, a const `stm32_metapac::METADATA` will be exported, containing all the
+# metadata for the currently selected chip.
+metadata = []
+
rt = ["cortex-m-rt/device"]
memory-x = []