diff --git a/embassy-embedded-hal/build.rs b/embassy-embedded-hal/build.rs deleted file mode 100644 index 78bd27ec7..000000000 --- a/embassy-embedded-hal/build.rs +++ /dev/null @@ -1,18 +0,0 @@ -use std::env; -use std::ffi::OsString; -use std::process::Command; - -fn main() { - println!("cargo:rerun-if-changed=build.rs"); - - let rustc = env::var_os("RUSTC").unwrap_or_else(|| OsString::from("rustc")); - - let output = Command::new(rustc) - .arg("--version") - .output() - .expect("failed to run `rustc --version`"); - - if String::from_utf8_lossy(&output.stdout).contains("nightly") { - println!("cargo:rustc-cfg=nightly"); - } -} diff --git a/embassy-embedded-hal/src/lib.rs b/embassy-embedded-hal/src/lib.rs index b40f892f4..ee974324b 100644 --- a/embassy-embedded-hal/src/lib.rs +++ b/embassy-embedded-hal/src/lib.rs @@ -1,6 +1,4 @@ #![cfg_attr(not(feature = "std"), no_std)] -#![cfg_attr(nightly, feature(async_fn_in_trait, impl_trait_projections))] -#![cfg_attr(nightly, allow(stable_features, unknown_lints))] #![allow(async_fn_in_trait)] #![warn(missing_docs)] diff --git a/embassy-net/build.rs b/embassy-net/build.rs deleted file mode 100644 index 78bd27ec7..000000000 --- a/embassy-net/build.rs +++ /dev/null @@ -1,18 +0,0 @@ -use std::env; -use std::ffi::OsString; -use std::process::Command; - -fn main() { - println!("cargo:rerun-if-changed=build.rs"); - - let rustc = env::var_os("RUSTC").unwrap_or_else(|| OsString::from("rustc")); - - let output = Command::new(rustc) - .arg("--version") - .output() - .expect("failed to run `rustc --version`"); - - if String::from_utf8_lossy(&output.stdout).contains("nightly") { - println!("cargo:rustc-cfg=nightly"); - } -} diff --git a/embassy-sync/build.rs b/embassy-sync/build.rs index 0a796b881..afd76dad1 100644 --- a/embassy-sync/build.rs +++ b/embassy-sync/build.rs @@ -1,21 +1,8 @@ use std::env; -use std::ffi::OsString; -use std::process::Command; fn main() { println!("cargo:rerun-if-changed=build.rs"); - let rustc = env::var_os("RUSTC").unwrap_or_else(|| OsString::from("rustc")); - - let output = Command::new(rustc) - .arg("--version") - .output() - .expect("failed to run `rustc --version`"); - - if String::from_utf8_lossy(&output.stdout).contains("nightly") { - println!("cargo:rustc-cfg=nightly"); - } - let target = env::var("TARGET").unwrap(); if target.starts_with("thumbv6m-") { diff --git a/embassy-sync/src/lib.rs b/embassy-sync/src/lib.rs index b0ccfde57..d88c76db5 100644 --- a/embassy-sync/src/lib.rs +++ b/embassy-sync/src/lib.rs @@ -1,6 +1,4 @@ #![cfg_attr(not(any(feature = "std", feature = "wasm")), no_std)] -#![cfg_attr(nightly, feature(async_fn_in_trait, impl_trait_projections))] -#![cfg_attr(nightly, allow(stable_features, unknown_lints))] #![allow(async_fn_in_trait)] #![allow(clippy::new_without_default)] #![doc = include_str!("../README.md")] diff --git a/embassy-time/build.rs b/embassy-time/build.rs index 78bd27ec7..f328e4d9d 100644 --- a/embassy-time/build.rs +++ b/embassy-time/build.rs @@ -1,18 +1 @@ -use std::env; -use std::ffi::OsString; -use std::process::Command; - -fn main() { - println!("cargo:rerun-if-changed=build.rs"); - - let rustc = env::var_os("RUSTC").unwrap_or_else(|| OsString::from("rustc")); - - let output = Command::new(rustc) - .arg("--version") - .output() - .expect("failed to run `rustc --version`"); - - if String::from_utf8_lossy(&output.stdout).contains("nightly") { - println!("cargo:rustc-cfg=nightly"); - } -} +fn main() {} diff --git a/embassy-time/src/lib.rs b/embassy-time/src/lib.rs index a59ee68d2..7e2546f68 100644 --- a/embassy-time/src/lib.rs +++ b/embassy-time/src/lib.rs @@ -1,6 +1,4 @@ #![cfg_attr(not(any(feature = "std", feature = "wasm", test)), no_std)] -#![cfg_attr(nightly, feature(async_fn_in_trait, impl_trait_projections))] -#![cfg_attr(nightly, allow(stable_features, unknown_lints))] #![allow(async_fn_in_trait)] #![doc = include_str!("../README.md")] #![allow(clippy::new_without_default)]