stm32: Use build.rs to generate a more coarse feature

This commit is contained in:
Thales Fragoso
2021-07-31 02:20:37 -03:00
parent 16d5294817
commit 21e3acaa00
4 changed files with 17 additions and 255 deletions

View File

@ -1,5 +1,5 @@
#[cfg_attr(any(pwr_h7, pwr_h7smps), path = "h7.rs")]
#[cfg_attr(not(any(pwr_h7, pwr_h7smps)), path = "none.rs")]
#[cfg_attr(pwr_f4, path = "f4.rs")]
mod _version;
pub use _version::*;