diff --git a/Cargo.toml b/Cargo.toml index da0d85f..a893e62 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,12 +23,8 @@ nb = "0.1.2" rtt-target = { version = "0.2.0", features = ["cortex-m"] } cortex-m-rtic = "0.5.0" -[dependencies.stm32f1] -version = "0.10.0" -features = ["stm32f103", "rt"] - [dependencies.stm32f1xx-hal] -version = "0.5.3" +version = "0.6.1" features = ["rt", "stm32f103", "medium"] [[bin]] diff --git a/src/main.rs b/src/main.rs index a1b859c..fd7e92e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,7 @@ #![deny(unsafe_code)] #![no_std] -#![no_main] +#![cfg_attr(not(doc), no_main)] use rtt_target::{rprintln, rtt_init_print}; use panic_rtt_target as _;