Catch wrong feature selection more robustly
As we are now using build.rs to check the feature selection,
we can now make more sophisticated checks.
Therefor we use build.rs to compare the selected features
and the features in the Cargo.toml (via cargo_metadata),
and verify, that only a single valid device feature is selected.
@@ -61,6 +61,10 @@ panic-probe = "0.2"
defmt-rtt = "0.2"
defmt-test = "0.2"
+[build-dependencies]
+cargo_metadata = "0.13.1"
+slice-group-by = "0.2.6"
+
[features]
default = ["unproven"]
unproven = ["embedded-hal/unproven"]
