eventp 1.0.0

Safe Rust abstraction over Linux epoll, offering a truly zero-cost event dispatch mechanism.
Documentation

Eventp

crates.io docs.rs CI codecov

Safe Rust abstraction over Linux epoll, offering a truly zero-cost event dispatch mechanism.

Minimum supported Rust version: 1.71.0

Platform support

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.

Quick start

cargo add eventp
cargo add eventp --dev --features mock

or,

[dependencies]
eventp = "1.0.0"

[dev-dependencies]
eventp = { version = "1.0.0", features = ["mock"] }

When writing tests, you may find the mock feature makes life much easier :)

Here is a full example shows almost everything you need: examples/echo-server.rs.

License

MIT.