Crates.io | naptime |
lib.rs | naptime |
version | 0.1.0 |
source | src |
created_at | 2024-08-29 18:30:06.457987 |
updated_at | 2024-08-29 18:30:06.457987 |
description | Detect sleep and wake notifications from the OS. |
homepage | |
repository | https://github.com/gamepoet/naptime |
max_upload_size | |
id | 1356573 |
size | 29,951 |
naptime
is a library that lets you subscribe to sleep and wake events from the
OS and lets you request an idle sleep query to be denied.
At the moment only macos is supported. Windows support is coming ...
Add this to your Cargo.toml
:
[dependencies]
naptime = "0.1"
Licensed under the MIT License.