#futures #platform-agnostic #cross-platform #io #waker

smelling_salts

Start a thread to wake an async executor when the OS’s I/O event notifier discovers that the hardware is ready

6 releases

0.2.4 Feb 15, 2021
0.2.3 Feb 6, 2021
0.2.2 Jan 16, 2021
0.2.1 Dec 30, 2020
0.1.0 May 3, 2020

#79 in Asynchronous

Download history 181/week @ 2020-11-04 455/week @ 2020-11-11 90/week @ 2020-11-18 277/week @ 2020-11-25 22/week @ 2020-12-02 395/week @ 2020-12-09 260/week @ 2020-12-16 13/week @ 2020-12-23 1339/week @ 2020-12-30 263/week @ 2021-01-06 357/week @ 2021-01-13 37/week @ 2021-01-20 37/week @ 2021-01-27 231/week @ 2021-02-03 78/week @ 2021-02-10 67/week @ 2021-02-17

1,124 downloads per month
Used in 5 crates (3 directly)

Apache-2.0 OR MIT OR BSL-1.0

26KB
323 lines

Smelling Salts

Changelog | Source | Getting Started

tests docs crates.io

Start a thread to wake an async executor when the OS's I/O event notifier gathers that the hardware is ready.

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 Platforms

  • Linux (epoll)

Planned Platforms

  • Windows
  • MacOS
  • BSD
  • Various Bare Metal?
  • Others?

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.

No runtime deps