//! Gear program utils
#![cfg(feature ="cli")]usestd::{fs,path::PathBuf};/// home directory of cli `gear`
pubfnhome()-> PathBuf{let home =dirs::home_dir().unwrap_or_else(||".".into()).join(".gear");if!home.exists(){fs::create_dir_all(&home).expect("Failed to create ~/.gear");}
home
}