Fix all check-cfg errors in the entire repo.

the main ci.sh now passes if running with nightly.
This commit is contained in:
Dario Nieuwenhuis
2024-05-31 21:41:42 +02:00
parent ba940017ee
commit 999a2ad829
38 changed files with 44 additions and 29 deletions

View File

@@ -21,7 +21,6 @@ target = "thumbv6m-none-eabi"
[dependencies]
defmt = { version = "0.3", optional = true }
defmt-rtt = { version = "0.4", optional = true }
log = { version = "0.4", optional = true }
embassy-sync = { version = "0.6.0", path = "../embassy-sync" }
@@ -46,7 +45,6 @@ log = [
"embassy-boot/log",
"embassy-rp/log",
]
debug = ["defmt-rtt"]
[profile.dev]
debug = 2

View File

@@ -5,4 +5,5 @@ fn main() {
if target.starts_with("thumbv6m-") {
println!("cargo:rustc-cfg=armv6m");
}
println!("cargo:rustc-check-cfg=cfg(armv6m)");
}