use std::error::Error; fn main() -> Result<(), Box> { shadow_rs::new()?; if cfg!(target_os = "windows") { winres::WindowsResource::new() .set_manifest_file("keepawake.exe.manifest") .compile()?; } Ok(()) }