wepoll-sys

Crates.iowepoll-sys
lib.rswepoll-sys
version3.0.1
sourcesrc
created_at2019-04-05 00:28:19.489522
updated_at2020-10-20 12:36:02.35852
descriptionRaw bindings to the wepoll library
homepage
repositoryhttps://gitlab.com/yorickpeterse/wepoll-sys
max_upload_size
id125894
size100,117
Yorick Peterse (yorickpeterse)

documentation

README

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

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

Usage

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

    // ...
}
Commit count: 30

cargo fmt