wepoll-sys

wepoll-sys provides unsafe Rust bindings to wepoll. The wepoll library is included in this crate and compiled automatically, removing the need for manually installing it.

Requirements

Usage

Add wepoll-sys as a Windows dependency (since it won't build on other platforms):

toml [dependencies.'cfg(windows)'.dependencies] wepoll-sys = "2.0"

Since this crate just provides a generated wrapper around the wepoll library, usage is the same as with the C code. For example:

```rust use wepoll_sys;

fn main() { let wepoll = wepollsys::epollcreate(1);

if wepoll.is_null() {
    panic!("epoll_create(1) failed!");
}

// ...

} ```