Skip to content

Commit

Permalink
Remove nightly checks.
Browse files Browse the repository at this point in the history
Async fn in traits has been stable for 7 months, it's very unlikely someone is using such old nightlies.

Fixes #618
  • Loading branch information
Dirbaio committed Jul 26, 2024
1 parent d31dfde commit a5f6aad
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 105 deletions.
18 changes: 0 additions & 18 deletions embedded-hal-async/build.rs

This file was deleted.

6 changes: 0 additions & 6 deletions embedded-hal-async/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
#![doc = include_str!("../README.md")]
#![warn(missing_docs)]
#![no_std]
// disable warning for already-stabilized features.
// Needed to pass CI, because we deny warnings.
// We don't immediately remove them to not immediately break older nightlies.
// When all features are stable, we'll remove them.
#![cfg_attr(nightly, allow(stable_features, unknown_lints))]
#![cfg_attr(nightly, feature(async_fn_in_trait, impl_trait_projections))]
#![allow(async_fn_in_trait)]

pub mod delay;
Expand Down
18 changes: 0 additions & 18 deletions embedded-hal-bus/build.rs

This file was deleted.

9 changes: 0 additions & 9 deletions embedded-hal-bus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@
#![warn(missing_docs)]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(docsrs, feature(doc_cfg))]
// disable warning for already-stabilized features.
// Needed to pass CI, because we deny warnings.
// We don't immediately remove them to not immediately break older nightlies.
// When all features are stable, we'll remove them.
#![cfg_attr(all(feature = "async", nightly), allow(stable_features))]
#![cfg_attr(
all(feature = "async", nightly),
feature(async_fn_in_trait, impl_trait_projections)
)]

// needed to prevent defmt macros from breaking, since they emit code that does `defmt::blahblah`.
#[cfg(feature = "defmt-03")]
Expand Down
18 changes: 0 additions & 18 deletions embedded-io-adapters/build.rs

This file was deleted.

12 changes: 0 additions & 12 deletions embedded-io-adapters/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,6 @@
#![cfg_attr(docsrs, feature(doc_cfg))]
#![warn(missing_docs)]
#![doc = include_str!("../README.md")]
// disable warning for already-stabilized features.
// Needed to pass CI, because we deny warnings.
// We don't immediately remove them to not immediately break older nightlies.
// When all features are stable, we'll remove them.
#![cfg_attr(
all(any(feature = "tokio-1", feature = "futures-03"), nightly),
allow(stable_features)
)]
#![cfg_attr(
all(any(feature = "tokio-1", feature = "futures-03"), nightly),
feature(async_fn_in_trait, impl_trait_projections)
)]

#[cfg(feature = "std")]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
Expand Down
18 changes: 0 additions & 18 deletions embedded-io-async/build.rs

This file was deleted.

6 changes: 0 additions & 6 deletions embedded-io-async/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
#![cfg_attr(docsrs, feature(doc_cfg))]
#![warn(missing_docs)]
#![doc = include_str!("../README.md")]
// disable warning for already-stabilized features.
// Needed to pass CI, because we deny warnings.
// We don't immediately remove them to not immediately break older nightlies.
// When all features are stable, we'll remove them.
#![cfg_attr(nightly, allow(stable_features, unknown_lints))]
#![cfg_attr(nightly, feature(async_fn_in_trait, impl_trait_projections))]
#![allow(async_fn_in_trait)]

#[cfg(feature = "alloc")]
Expand Down

0 comments on commit a5f6aad

Please sign in to comment.