7 stable releases

✓ Uses Rust 2018 edition

2.0.0 Apr 26, 2020
1.1.0 Apr 25, 2020
1.0.4 Nov 21, 2019
1.0.3 Apr 6, 2019
1.0.2 Apr 5, 2019

#62 in Windows APIs

Download history 6/week @ 2020-03-12 16/week @ 2020-03-19 26/week @ 2020-03-26 20/week @ 2020-04-02 44/week @ 2020-04-09 37/week @ 2020-04-16 872/week @ 2020-04-23 945/week @ 2020-04-30 1358/week @ 2020-05-07 1412/week @ 2020-05-14 4637/week @ 2020-05-21 6879/week @ 2020-05-28 7480/week @ 2020-06-04 7071/week @ 2020-06-11 5658/week @ 2020-06-18 1748/week @ 2020-06-25

149 downloads per month
Used in wepoll-binding

MPL-2.0 license

82KB
2K SLoC

C 1.5K SLoC // 0.1% comments Rust 339 SLoC Ruby 26 SLoC // 0.1% comments

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

~190KB