stm32-usbd2 0.7.0

'usb-device' implementation for STM32 microcontrollers
Documentation
1
2
3
4
5
6
7
8
fn main() {
    let profile = std::env::var("PROFILE").unwrap();
    let target = std::env::var("TARGET").unwrap();

    if profile == "debug" && !target.starts_with("x86_64") {
        println!("cargo:warning=stm32-usbd is being compiled in debug mode. This driver works reliably only in release mode!");
    }
}