fn main() { #[cfg(windows)] { if let Err(e) = winres::WindowsResource::new() .set_icon("assets/logo.ico") .compile() { eprintln!("warning: не удалось встроить иконку: {e}"); } } }