| Crates.io | wepoll-sys-stjepang |
| lib.rs | wepoll-sys-stjepang |
| version | 1.0.8 |
| created_at | 2020-06-21 15:15:49.735423+00 |
| updated_at | 2020-09-14 16:12:54.362167+00 |
| description | A fork of wepoll-sys with stjepang's patches |
| homepage | https://github.com/stjepang/wepoll-sys-stjepang |
| repository | https://github.com/stjepang/wepoll-sys-stjepang |
| max_upload_size | |
| id | 256330 |
| size | 175,579 |
wepoll-sys-stjepang provides Rust bindings to wepoll, generated using bindgen. The wepoll library is included in this crate and compiled automatically, removing the need for manually installing it.
cl.exe), etcAdd wepoll-sys-stjepang as a Windows dependency (since it won't build on other platforms):
[dependencies.'cfg(windows)'.dependencies]
wepoll-sys-stjepang = "1.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_stjepang;
fn main() {
let wepoll = wepoll_sys_stjepang::epoll_create(1);
if wepoll.is_null() {
panic!("epoll_create(1) failed!");
}
// ...
}