5 releases
0.2.1 | Nov 20, 2022 |
---|---|
0.2.0 | May 8, 2022 |
0.2.0-rc.2 | May 7, 2022 |
0.2.0-rc.1 | May 4, 2022 |
#3 in #nosleep
72 downloads per month
Used in 2 crates
(via nosleep)
10KB
147 lines
nosleep-window
Windows library to block the power save function and preventing the OS to sleep.
lib.rs
:
Thin wrapper utility that provides utility methods to block and unblock the Windows power save mode
Inspired on the Chromium source code https://chromium.googlesource.com/chromium/src/+/87cd0848a0d1453e7553a72b0686d42fabf8ff3a/device/power_save_blocker/power_save_blocker_win.cc
Dependencies
~131MB
~2M SLoC