day-part-wakelock 0.7.10

Declarative app development API using native UI toolkits
Documentation

day-part-wakelock

Keep the display awake while your app presents an activity that needs it.

Day is a Rust framework for building apps with native desktop and mobile controls, plus HTML controls on the web.

Locks are scoped handles: releasing the last handle allows normal display sleep again. Acquire and release them on the UI thread. Linux currently has no implementation; browser support depends on the Screen Wake Lock API and page visibility.

Use

Add it to your app:

cargo add 'day-part-wakelock@0.*'

Documentation

Source · Contributing · MPL-2.0 license