#hardware-devices #cross-platform #future #io #waker #platform-independent

smelling_salts

Abstraction over OS APIs to handle asynchronous device waking

21 releases (11 breaking)

0.12.1 Feb 21, 2023
0.11.0 Jan 22, 2023
0.9.2 Dec 10, 2022
0.8.0 Oct 17, 2022
0.1.0 May 3, 2020

#1262 in Asynchronous

Download history 22/week @ 2024-07-15 182/week @ 2024-07-29 5/week @ 2024-08-05 14/week @ 2024-08-12 4/week @ 2024-08-19 45/week @ 2024-08-26 7/week @ 2024-09-02 9/week @ 2024-09-09 13/week @ 2024-09-16 95/week @ 2024-09-23 84/week @ 2024-09-30 16/week @ 2024-10-07 26/week @ 2024-10-14 1/week @ 2024-10-21 26/week @ 2024-10-28

74 downloads per month
Used in 8 crates (6 directly)

Apache-2.0 OR BSL-1.0 OR MIT

19KB
278 lines

Smelling Salts

Changelog | Source | Getting Started

tests docs crates.io

Abstraction over OS APIs to handle asynchronous device waking.

About

If you're writing a Rust library to handle hardware asynchronously, you should use this crate. This library automatically wakes futures by registering a waker with a device that you construct with a file descriptor.

Currently Supported APIs

  • Epoll (Linux)

Planned APIs

  • Run loops (MacOS)
  • Kqueue (BSD/MacOS)
  • IOCP (Windows)
  • Various Bare Metal?
  • Others?

MSRV

The minimum supported Rust version of Smelling Salts is 1.66; bumping the MSRV is considered a breaking change and requires incrementing the leftmost version number.

License

Licensed under any of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as described above, without any additional terms or conditions.

Help

If you want help using or contributing to this library, feel free to send me an email at aldaronlau@gmail.com.

Dependencies

~59KB