wepoll-sys-stjepang

Crates.iowepoll-sys-stjepang
lib.rswepoll-sys-stjepang
version1.0.8
sourcesrc
created_at2020-06-21 15:15:49.735423
updated_at2020-09-14 16:12:54.362167
descriptionA fork of wepoll-sys with stjepang's patches
homepagehttps://github.com/stjepang/wepoll-sys-stjepang
repositoryhttps://github.com/stjepang/wepoll-sys-stjepang
max_upload_size
id256330
size175,579
()

documentation

https://docs.rs/wepoll-sys-stjepang

README

wepoll-sys-stjepang (a fork of wepoll-sys)

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.

Requirements

  • Rust 2018
  • Windows
  • clang
  • A compiler such as gcc, the MSVC compiler (cl.exe), etc

Usage

Add 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!");
    }

    // ...
}
Commit count: 0

cargo fmt