2 unstable releases

0.2.0-pre1 Feb 26, 2025
0.1.0 Mar 31, 2024

#112 in Science

Download history 5/week @ 2024-12-04 10/week @ 2024-12-11 142/week @ 2025-02-26 9/week @ 2025-03-05

151 downloads per month

Apache-2.0/MIT

170KB
2K SLoC

io-uring-epoll

Discord chat Crates.io Docs License License MSRV

meme what If I told you your epoll is in your io_uring

When your io_uring meets your epoll 🥰

Save system calls by setting file handle readiness checks especially in busy eventloops that have a lot of on/off readiness activity via io_uring interface.

Please note that epoll is different to reqular poll and is only available on Linux kernel.

Epoll itself has been in the Linux kernel around 20 years but io_uring has recently added the EpollCtl OpCode support in order to bypass the need of systerm calls to control it.

This is not a portable implementation given Windows I/O rings or MacOS doesn't provide anything related with their relevant epoll implementations if any.

Add

cargo add io-uring-epoll

Example

See Examples directory for the different use-cases.

License

Licensed under either of:

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 dual licensed as above, without any additional terms or conditions.

Dependencies

~1.5MB
~27K SLoC