keep-active 0.1.2

Keep your computer awake and active
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[allow(unused_imports)]
use std::env;
use std::error::Error;

fn main() -> Result<(), Box<dyn Error>> {
    #[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(())
}