trivial fix, make cargo happy

This commit is contained in:
eZio Pan 2024-01-05 14:33:50 +08:00
parent e527f2796c
commit 924fc34866
2 changed files with 3 additions and 0 deletions

View File

@ -1,4 +1,5 @@
[workspace]
resolver = "2"
members = [
"stm32-data-gen",
"stm32-data-serde",

View File

@ -1,7 +1,9 @@
use std::env;
#[cfg(any(feature = "rt", feature = "memory-x"))]
use std::path::PathBuf;
fn main() {
#[cfg(any(feature = "rt", feature = "memory-x"))]
let crate_dir = PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").unwrap());
let chip_core_name = env::vars_os()