#[allow(unused_imports)] use std::env; use std::error::Error; fn main() -> Result<(), Box> { #[cfg(feature = "bin")] shadow_rs::new()?; #[cfg(feature = "bin")] if env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" { winresource::WindowsResource::new() .set_manifest_file("keep-active.exe.manifest") .compile()?; } Ok(()) }