aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-usb-dfu/Cargo.toml2
-rw-r--r--embassy-usb-dfu/src/lib.rs8
-rw-r--r--examples/boot/bootloader/stm32wb-dfu/Cargo.toml2
3 files changed, 6 insertions, 6 deletions
diff --git a/embassy-usb-dfu/Cargo.toml b/embassy-usb-dfu/Cargo.toml
index 02146c646..ee110ee87 100644
--- a/embassy-usb-dfu/Cargo.toml
+++ b/embassy-usb-dfu/Cargo.toml
@@ -27,6 +27,6 @@ embedded-storage = { version = "0.3.1" }
27esp32c3-hal = { version = "0.13.0", optional = true, default-features = false } 27esp32c3-hal = { version = "0.13.0", optional = true, default-features = false }
28 28
29[features] 29[features]
30bootloader = [] 30dfu = []
31application = [] 31application = []
32defmt = ["dep:defmt"] 32defmt = ["dep:defmt"]
diff --git a/embassy-usb-dfu/src/lib.rs b/embassy-usb-dfu/src/lib.rs
index 283905de9..389bb33f2 100644
--- a/embassy-usb-dfu/src/lib.rs
+++ b/embassy-usb-dfu/src/lib.rs
@@ -3,9 +3,9 @@ mod fmt;
3 3
4pub mod consts; 4pub mod consts;
5 5
6#[cfg(feature = "bootloader")] 6#[cfg(feature = "dfu")]
7mod bootloader; 7mod bootloader;
8#[cfg(feature = "bootloader")] 8#[cfg(feature = "dfu")]
9pub use self::bootloader::*; 9pub use self::bootloader::*;
10 10
11#[cfg(feature = "application")] 11#[cfg(feature = "application")]
@@ -14,8 +14,8 @@ mod application;
14pub use self::application::*; 14pub use self::application::*;
15 15
16#[cfg(any( 16#[cfg(any(
17 all(feature = "bootloader", feature = "application"), 17 all(feature = "dfu", feature = "application"),
18 not(any(feature = "bootloader", feature = "application")) 18 not(any(feature = "dfu", feature = "application"))
19))] 19))]
20compile_error!("usb-dfu must be compiled with exactly one of `bootloader`, or `application` features"); 20compile_error!("usb-dfu must be compiled with exactly one of `bootloader`, or `application` features");
21 21
diff --git a/examples/boot/bootloader/stm32wb-dfu/Cargo.toml b/examples/boot/bootloader/stm32wb-dfu/Cargo.toml
index e849eb539..ada073970 100644
--- a/examples/boot/bootloader/stm32wb-dfu/Cargo.toml
+++ b/examples/boot/bootloader/stm32wb-dfu/Cargo.toml
@@ -17,7 +17,7 @@ cortex-m-rt = { version = "0.7" }
17embedded-storage = "0.3.1" 17embedded-storage = "0.3.1"
18embedded-storage-async = "0.4.0" 18embedded-storage-async = "0.4.0"
19cfg-if = "1.0.0" 19cfg-if = "1.0.0"
20embassy-usb-dfu = { version = "0.1.0", path = "../../../../embassy-usb-dfu", features = ["bootloader", "cortex-m"] } 20embassy-usb-dfu = { version = "0.1.0", path = "../../../../embassy-usb-dfu", features = ["dfu", "cortex-m"] }
21embassy-usb = { version = "0.1.0", path = "../../../../embassy-usb", default-features = false } 21embassy-usb = { version = "0.1.0", path = "../../../../embassy-usb", default-features = false }
22embassy-futures = { version = "0.1.1", path = "../../../../embassy-futures" } 22embassy-futures = { version = "0.1.1", path = "../../../../embassy-futures" }
23 23