embassy/embassy-usb-dfu/src/lib.rs

20 lines
488 B
Rust
Raw Normal View History

2023-12-13 20:40:49 +01:00
#![no_std]
pub mod consts;
#[cfg(feature = "bootloader")]
mod bootloader;
#[cfg(feature = "bootloader")]
pub use self::bootloader::*;
#[cfg(feature = "application")]
mod application;
#[cfg(feature = "application")]
pub use self::application::*;
2023-12-13 20:53:49 +01:00
#[cfg(any(
all(feature = "bootloader", feature = "application"),
not(any(feature = "bootloader", feature = "application"))
))]
2023-12-13 20:40:49 +01:00
compile_error!("usb-dfu must be compiled with exactly one of `bootloader`, or `application` features");