diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-01-10 18:25:45 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2024-01-10 18:32:14 +0100 |
| commit | fe0b21e21e8a1144a37ef07892927062682206a1 (patch) | |
| tree | 582fa9858b0fad347f6901594df6cbd23e23f6f6 /embassy-sync | |
| parent | 77e60ecff82e26985257c43828b7232d2b78addf (diff) | |
Remove nightly autodetects.
Diffstat (limited to 'embassy-sync')
| -rw-r--r-- | embassy-sync/build.rs | 13 | ||||
| -rw-r--r-- | embassy-sync/src/lib.rs | 2 |
2 files changed, 0 insertions, 15 deletions
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 @@ | |||
| 1 | use std::env; | 1 | use std::env; |
| 2 | use std::ffi::OsString; | ||
| 3 | use std::process::Command; | ||
| 4 | 2 | ||
| 5 | fn main() { | 3 | fn main() { |
| 6 | println!("cargo:rerun-if-changed=build.rs"); | 4 | println!("cargo:rerun-if-changed=build.rs"); |
| 7 | 5 | ||
| 8 | let rustc = env::var_os("RUSTC").unwrap_or_else(|| OsString::from("rustc")); | ||
| 9 | |||
| 10 | let output = Command::new(rustc) | ||
| 11 | .arg("--version") | ||
| 12 | .output() | ||
| 13 | .expect("failed to run `rustc --version`"); | ||
| 14 | |||
| 15 | if String::from_utf8_lossy(&output.stdout).contains("nightly") { | ||
| 16 | println!("cargo:rustc-cfg=nightly"); | ||
| 17 | } | ||
| 18 | |||
| 19 | let target = env::var("TARGET").unwrap(); | 6 | let target = env::var("TARGET").unwrap(); |
| 20 | 7 | ||
| 21 | if target.starts_with("thumbv6m-") { | 8 | 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 @@ | |||
| 1 | #![cfg_attr(not(any(feature = "std", feature = "wasm")), no_std)] | 1 | #![cfg_attr(not(any(feature = "std", feature = "wasm")), no_std)] |
| 2 | #![cfg_attr(nightly, feature(async_fn_in_trait, impl_trait_projections))] | ||
| 3 | #![cfg_attr(nightly, allow(stable_features, unknown_lints))] | ||
| 4 | #![allow(async_fn_in_trait)] | 2 | #![allow(async_fn_in_trait)] |
| 5 | #![allow(clippy::new_without_default)] | 3 | #![allow(clippy::new_without_default)] |
| 6 | #![doc = include_str!("../README.md")] | 4 | #![doc = include_str!("../README.md")] |
