naptime

Crates.ionaptime
lib.rsnaptime
version0.1.0
sourcesrc
created_at2024-08-29 18:30:06.457987
updated_at2024-08-29 18:30:06.457987
descriptionDetect sleep and wake notifications from the OS.
homepage
repositoryhttps://github.com/gamepoet/naptime
max_upload_size
id1356573
size29,951
Ben Scott (gamepoet)

documentation

README

Crates.io Documentation

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.

Note

At the moment only macos is supported. Windows support is coming ...

Usage

Add this to your Cargo.toml:

[dependencies]
naptime = "0.1"

License

Licensed under the MIT License.

Commit count: 0

cargo fmt