diff options
| author | Kaitlyn Kenwell <[email protected]> | 2023-12-14 14:16:58 -0500 |
|---|---|---|
| committer | Kaitlyn Kenwell <[email protected]> | 2023-12-14 14:16:58 -0500 |
| commit | 33e8943e5b6e637b82f13c77bd88bb56d55ab515 (patch) | |
| tree | 161e665f1727e7ec822ca9af493d42d9f88effa1 /embassy-usb-dfu | |
| parent | 9f9f6e75bb3ef6d285ebed88a20ab57fb55f3d07 (diff) | |
Rename bootloader feature to dfu
Diffstat (limited to 'embassy-usb-dfu')
| -rw-r--r-- | embassy-usb-dfu/Cargo.toml | 2 | ||||
| -rw-r--r-- | embassy-usb-dfu/src/lib.rs | 8 |
2 files changed, 5 insertions, 5 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" } | |||
| 27 | esp32c3-hal = { version = "0.13.0", optional = true, default-features = false } | 27 | esp32c3-hal = { version = "0.13.0", optional = true, default-features = false } |
| 28 | 28 | ||
| 29 | [features] | 29 | [features] |
| 30 | bootloader = [] | 30 | dfu = [] |
| 31 | application = [] | 31 | application = [] |
| 32 | defmt = ["dep:defmt"] | 32 | defmt = ["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 | ||
| 4 | pub mod consts; | 4 | pub mod consts; |
| 5 | 5 | ||
| 6 | #[cfg(feature = "bootloader")] | 6 | #[cfg(feature = "dfu")] |
| 7 | mod bootloader; | 7 | mod bootloader; |
| 8 | #[cfg(feature = "bootloader")] | 8 | #[cfg(feature = "dfu")] |
| 9 | pub use self::bootloader::*; | 9 | pub use self::bootloader::*; |
| 10 | 10 | ||
| 11 | #[cfg(feature = "application")] | 11 | #[cfg(feature = "application")] |
| @@ -14,8 +14,8 @@ mod application; | |||
| 14 | pub use self::application::*; | 14 | pub 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 | ))] |
| 20 | compile_error!("usb-dfu must be compiled with exactly one of `bootloader`, or `application` features"); | 20 | compile_error!("usb-dfu must be compiled with exactly one of `bootloader`, or `application` features"); |
| 21 | 21 | ||
