From a4d15797e37592d436383fad50eacfb8f56de93a Mon Sep 17 00:00:00 2001 From: Jonathan Pallant Date: Tue, 24 Sep 2024 12:00:10 +0100 Subject: [PATCH] Allow our use of cfg(TODO). Rust got much fussier about these in 1.80. See https://blog.rust-lang.org/2024/05/06/check-cfg.html. --- nrf52-code/usb-lib-solutions/get-descriptor-config/build.rs | 3 +++ nrf52-code/usb-lib-solutions/get-device/build.rs | 3 +++ nrf52-code/usb-lib-solutions/set-config/build.rs | 3 +++ nrf52-code/usb-lib/build.rs | 3 +++ 4 files changed, 12 insertions(+) create mode 100644 nrf52-code/usb-lib-solutions/get-descriptor-config/build.rs create mode 100644 nrf52-code/usb-lib-solutions/get-device/build.rs create mode 100644 nrf52-code/usb-lib-solutions/set-config/build.rs create mode 100644 nrf52-code/usb-lib/build.rs diff --git a/nrf52-code/usb-lib-solutions/get-descriptor-config/build.rs b/nrf52-code/usb-lib-solutions/get-descriptor-config/build.rs new file mode 100644 index 00000000..bef7fc84 --- /dev/null +++ b/nrf52-code/usb-lib-solutions/get-descriptor-config/build.rs @@ -0,0 +1,3 @@ +fn main() { + println!("cargo::rustc-check-cfg=cfg(TODO)"); +} diff --git a/nrf52-code/usb-lib-solutions/get-device/build.rs b/nrf52-code/usb-lib-solutions/get-device/build.rs new file mode 100644 index 00000000..bef7fc84 --- /dev/null +++ b/nrf52-code/usb-lib-solutions/get-device/build.rs @@ -0,0 +1,3 @@ +fn main() { + println!("cargo::rustc-check-cfg=cfg(TODO)"); +} diff --git a/nrf52-code/usb-lib-solutions/set-config/build.rs b/nrf52-code/usb-lib-solutions/set-config/build.rs new file mode 100644 index 00000000..bef7fc84 --- /dev/null +++ b/nrf52-code/usb-lib-solutions/set-config/build.rs @@ -0,0 +1,3 @@ +fn main() { + println!("cargo::rustc-check-cfg=cfg(TODO)"); +} diff --git a/nrf52-code/usb-lib/build.rs b/nrf52-code/usb-lib/build.rs new file mode 100644 index 00000000..bef7fc84 --- /dev/null +++ b/nrf52-code/usb-lib/build.rs @@ -0,0 +1,3 @@ +fn main() { + println!("cargo::rustc-check-cfg=cfg(TODO)"); +}