Skip to content

Commit 5cdd987

Browse files
committed
Rename the futures feature to unstable-features
1 parent 1928f77 commit 5cdd987

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ version = "1.0.0-alpha.4" # remember to update html_root_url
1818
[features]
1919
# Enabling this feature enables the `futures` module using generic associated types (GATs), which are still unstable.
2020
# Therefore, this feature requires compiling on nightly.
21-
futures = []
22-
default = ["futures"]
21+
unstable-futures = []
2322

2423
[dependencies]
2524
nb = "1"

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,12 +407,12 @@
407407
#![doc(html_root_url = "https://docs.rs/embedded-hal/1.0.0-alpha.4")]
408408
#![deny(missing_docs)]
409409
#![no_std]
410-
#![cfg_attr(feature = "futures", feature(generic_associated_types, min_type_alias_impl_trait))]
410+
#![cfg_attr(feature = "unstable-futures", feature(generic_associated_types, min_type_alias_impl_trait))]
411411

412412
pub mod blocking;
413413
pub mod fmt;
414414
pub mod nb;
415-
#[cfg(feature = "futures")]
415+
#[cfg(feature = "unstable-futures")]
416416
pub mod futures;
417417
pub mod prelude;
418418

0 commit comments

Comments
 (0)