So I have been looking for a #Rust crate that can provide _global hot key support_ without a window in focus.
First tried `rdev`, but it doesn't support unsubscribing from events. 😩
https://docs.rs/rdev/latest/rdev/
However, I've learned a ton about:
- bridging sync/async
- async cancellation
- custom `Drop` impl with pin_project crate:
=> https://docs.rs/pin-project/latest/pin_project/attr.pinned_drop.html
I'll now look into `device_query` crate (supports unsubscribing via dropping the guard):
https://docs.rs/device_query/latest/device_query/