diff --git a/embassy-boot/boot/Cargo.toml b/embassy-boot/boot/Cargo.toml index 956b0f98..f641d5e1 100644 --- a/embassy-boot/boot/Cargo.toml +++ b/embassy-boot/boot/Cargo.toml @@ -45,7 +45,6 @@ default_features = false features = ["rand", "std", "u32_backend"] [features] -default = ["nightly"] ed25519-dalek = ["dep:ed25519-dalek", "_verify"] ed25519-salty = ["dep:salty", "_verify"] diff --git a/embassy-boot/nrf/Cargo.toml b/embassy-boot/nrf/Cargo.toml index 05ab8789..e4673688 100644 --- a/embassy-boot/nrf/Cargo.toml +++ b/embassy-boot/nrf/Cargo.toml @@ -28,7 +28,6 @@ cfg-if = "1.0.0" nrf-softdevice-mbr = { version = "0.1.0", git = "https://github.com/embassy-rs/nrf-softdevice.git", branch = "master", optional = true } [features] -default = ["nightly"] defmt = [ "dep:defmt", "embassy-boot/defmt", diff --git a/embassy-boot/nrf/src/lib.rs b/embassy-boot/nrf/src/lib.rs index 48bbd7e2..14bea1f7 100644 --- a/embassy-boot/nrf/src/lib.rs +++ b/embassy-boot/nrf/src/lib.rs @@ -1,5 +1,4 @@ #![no_std] -#![cfg_attr(feature = "nightly", feature(type_alias_impl_trait))] #![warn(missing_docs)] #![doc = include_str!("../README.md")] mod fmt; diff --git a/embassy-boot/rp/Cargo.toml b/embassy-boot/rp/Cargo.toml index 96024cdd..5147392c 100644 --- a/embassy-boot/rp/Cargo.toml +++ b/embassy-boot/rp/Cargo.toml @@ -18,14 +18,14 @@ defmt-rtt = { version = "0.4", optional = true } log = { version = "0.4", optional = true } embassy-sync = { path = "../../embassy-sync" } -embassy-rp = { path = "../../embassy-rp", default-features = false, features = ["nightly"] } +embassy-rp = { path = "../../embassy-rp", default-features = false } embassy-boot = { path = "../boot", default-features = false } -embassy-time = { path = "../../embassy-time", features = ["nightly"] } +embassy-time = { path = "../../embassy-time" } cortex-m = { version = "0.7.6" } cortex-m-rt = { version = "0.7" } embedded-storage = "0.3.0" -embedded-storage-async = "0.4.0" +embedded-storage-async = { version = "0.4.0", optional = true } cfg-if = "1.0.0" [features] @@ -40,6 +40,12 @@ log = [ "embassy-rp/log", ] debug = ["defmt-rtt"] +nightly = [ + "dep:embedded-storage-async", + "embassy-boot/nightly", + "embassy-rp/nightly", + "embassy-time/nightly" +] [profile.dev] debug = 2 diff --git a/embassy-boot/rp/src/lib.rs b/embassy-boot/rp/src/lib.rs index c3cb2229..0d577f08 100644 --- a/embassy-boot/rp/src/lib.rs +++ b/embassy-boot/rp/src/lib.rs @@ -1,5 +1,4 @@ #![no_std] -#![feature(type_alias_impl_trait)] #![warn(missing_docs)] #![doc = include_str!("../README.md")] mod fmt; diff --git a/embassy-boot/stm32/Cargo.toml b/embassy-boot/stm32/Cargo.toml index 7061063b..99a6b8e0 100644 --- a/embassy-boot/stm32/Cargo.toml +++ b/embassy-boot/stm32/Cargo.toml @@ -19,12 +19,12 @@ defmt-rtt = { version = "0.4", optional = true } log = { version = "0.4", optional = true } embassy-sync = { path = "../../embassy-sync" } -embassy-stm32 = { path = "../../embassy-stm32", default-features = false, features = ["nightly"] } +embassy-stm32 = { path = "../../embassy-stm32", default-features = false } embassy-boot = { path = "../boot", default-features = false } cortex-m = { version = "0.7.6" } cortex-m-rt = { version = "0.7" } embedded-storage = "0.3.0" -embedded-storage-async = "0.4.0" +embedded-storage-async = { version = "0.4.0", optional = true } cfg-if = "1.0.0" [features] @@ -39,6 +39,11 @@ log = [ "embassy-stm32/log", ] debug = ["defmt-rtt"] +nightly = [ + "dep:embedded-storage-async", + "embassy-boot/nightly", + "embassy-stm32/nightly" +] [profile.dev] debug = 2 diff --git a/embassy-boot/stm32/src/lib.rs b/embassy-boot/stm32/src/lib.rs index 94404697..88ce1c87 100644 --- a/embassy-boot/stm32/src/lib.rs +++ b/embassy-boot/stm32/src/lib.rs @@ -1,5 +1,4 @@ #![no_std] -#![feature(type_alias_impl_trait)] #![warn(missing_docs)] #![doc = include_str!("../README.md")] mod fmt;