#[cfg(windows)] use auto_winres::WindowsResource; pub fn main() { #[cfg(windows)] WindowsResource::new() .set_icon("icon/app.ico") .set_manifest( r#" "#, ) .compile() .expect("Compile Error"); }