Crates.io | wepoll-sys |
lib.rs | wepoll-sys |
version | 3.0.1 |
source | src |
created_at | 2019-04-05 00:28:19.489522 |
updated_at | 2020-10-20 12:36:02.35852 |
description | Raw bindings to the wepoll library |
homepage | |
repository | https://gitlab.com/yorickpeterse/wepoll-sys |
max_upload_size | |
id | 125894 |
size | 100,117 |
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.
cl.exe
), etcAdd wepoll-sys as a Windows dependency (since it won't build on other platforms):
[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:
use wepoll_sys;
fn main() {
let wepoll = wepoll_sys::epoll_create(1);
if wepoll.is_null() {
panic!("epoll_create(1) failed!");
}
// ...
}