Safe Rust abstraction over Linux epoll, offering a truly zero-cost event dispatch mechanism.
Minimum supported Rust version: 1.71.0
Linux only, on 64-bit targets. Non-Linux and non-64-bit platforms are rejected at compile time.
Tested in CI on x86_64 and aarch64.
cargo add eventp
cargo add eventp --dev --features mockor,
[dependencies]
eventp = "1.0.0"
[dev-dependencies]
eventp = { version = "1.0.0", features = ["mock"] }When writing tests, you may find the
mockfeature makes life much easier :)
Here is a full example shows almost everything you need: examples/echo-server.rs.
MIT.