5 stable releases

✓ Uses Rust 2018 edition

1.0.4 Nov 21, 2019
1.0.3 Apr 6, 2019
1.0.2 Apr 5, 2019

#38 in Windows APIs

Download history 26/week @ 2019-08-07 11/week @ 2019-08-14 13/week @ 2019-08-21 28/week @ 2019-08-28 18/week @ 2019-09-04 33/week @ 2019-09-11 46/week @ 2019-09-18 16/week @ 2019-09-25 24/week @ 2019-10-02 13/week @ 2019-10-09 12/week @ 2019-10-16 10/week @ 2019-10-23 10/week @ 2019-10-30 3/week @ 2019-11-06 16/week @ 2019-11-13

83 downloads per month
Used in 1 crate

MPL-2.0 license

73KB
1.5K SLoC

C 1.5K SLoC // 0.1% comments Rust 76 SLoC

wepoll-sys

wepoll-sys 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 as a Windows dependency (since it won't build on other platforms):

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

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

    // ...
}

Dependencies

~0–1.5MB
~31K SLoC