Skip to content

Commit a4dcba4

Browse files
committed
Add allow(stable_features).
Needed to pass deny-warnings on CI without breaking older nightlies.
1 parent e632f16 commit a4dcba4

File tree

4 files changed

+26
-3
lines changed

4 files changed

+26
-3
lines changed

embedded-hal-async/src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#![doc = include_str!("../README.md")]
22
#![warn(missing_docs)]
33
#![no_std]
4+
// disable warning for already-stabilized features.
5+
// Needed to pass CI, because we deny warnings.
6+
// We don't immediately remove them to not immediately break older nightlies.
7+
// When all features are stable, we'll remove them.
8+
#![allow(stable_features)]
49
#![feature(async_fn_in_trait, impl_trait_projections)]
510

611
pub mod delay;

embedded-hal-bus/src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
#![warn(missing_docs)]
33
#![cfg_attr(not(feature = "std"), no_std)]
44
#![cfg_attr(docsrs, feature(doc_cfg))]
5+
// disable warning for already-stabilized features.
6+
// Needed to pass CI, because we deny warnings.
7+
// We don't immediately remove them to not immediately break older nightlies.
8+
// When all features are stable, we'll remove them.
9+
#![cfg_attr(feature = "async", allow(stable_features))]
510
#![cfg_attr(feature = "async", feature(async_fn_in_trait, impl_trait_projections))]
611

712
// needed to prevent defmt macros from breaking, since they emit code that does `defmt::blahblah`.

embedded-io-adapters/src/lib.rs

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
#![cfg_attr(not(feature = "std"), no_std)]
22
#![cfg_attr(docsrs, feature(doc_cfg))]
3+
#![warn(missing_docs)]
4+
#![doc = include_str!("../README.md")]
5+
// disable warning for already-stabilized features.
6+
// Needed to pass CI, because we deny warnings.
7+
// We don't immediately remove them to not immediately break older nightlies.
8+
// When all features are stable, we'll remove them.
9+
#![cfg_attr(
10+
any(feature = "tokio-1", feature = "futures-03"),
11+
allow(stable_features)
12+
)]
313
#![cfg_attr(
414
any(feature = "tokio-1", feature = "futures-03"),
515
feature(async_fn_in_trait, impl_trait_projections)
616
)]
7-
#![warn(missing_docs)]
8-
#![doc = include_str!("../README.md")]
917

1018
#[cfg(feature = "std")]
1119
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]

embedded-io-async/src/lib.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
#![feature(async_fn_in_trait, impl_trait_projections)]
21
#![cfg_attr(not(feature = "std"), no_std)]
32
#![cfg_attr(docsrs, feature(doc_cfg))]
43
#![warn(missing_docs)]
54
#![doc = include_str!("../README.md")]
5+
// disable warning for already-stabilized features.
6+
// Needed to pass CI, because we deny warnings.
7+
// We don't immediately remove them to not immediately break older nightlies.
8+
// When all features are stable, we'll remove them.
9+
#![allow(stable_features)]
10+
#![feature(async_fn_in_trait, impl_trait_projections)]
611

712
#[cfg(feature = "alloc")]
813
extern crate alloc;

0 commit comments

Comments
 (0)