Native GUI system monitor for workstations, laptops and NAS, a btop alternative: resizable panels, storage health, per-process GPU usage and many hosts over SSH
//! Embeds the icon in the Windows executable (Explorer, the Start menu and
//! shortcuts show it). Only when building on Windows, where the resource
//! compiler is; elsewhere there is nothing to do.
fnmain(){println!("cargo:rerun-if-changed=assets/rigtop.ico");#[cfg(windows)]ifstd::env::var("CARGO_CFG_TARGET_OS").as_deref()==Ok("windows"){letmut resource =winresource::WindowsResource::new();
resource.set_icon("assets/rigtop.ico");
resource
.compile().expect("failed to embed the Windows icon");}}