12 releases

0.3.0 Oct 7, 2024
0.2.6 Feb 27, 2023
0.2.5 Oct 23, 2022
0.2.4 May 27, 2020
0.1.1 Jan 21, 2019

#581 in Asynchronous

Download history 189/week @ 2024-08-27 144/week @ 2024-09-03 191/week @ 2024-09-10 120/week @ 2024-09-17 212/week @ 2024-09-24 170/week @ 2024-10-01 137/week @ 2024-10-08 113/week @ 2024-10-15 86/week @ 2024-10-22 124/week @ 2024-10-29 69/week @ 2024-11-05 43/week @ 2024-11-12 104/week @ 2024-11-19 199/week @ 2024-11-26 439/week @ 2024-12-03 481/week @ 2024-12-10

1,225 downloads per month
Used in 202 crates (9 directly)

MIT license

2MB
53K SLoC

C 50K SLoC // 0.1% comments Python 1.5K SLoC // 0.2% comments M4 577 SLoC // 0.4% comments Shell 551 SLoC // 0.1% comments Automake 478 SLoC // 0.2% comments Rust 186 SLoC // 0.1% comments

Contains (obscure autoconf code, 26KB) libevent/configure.ac

libevent-sys

Released API docs

Rust FFI bindings to libevent library made using Rust-Bindgen.

System Requirements

  • libclang is required by bindgen which is used to generate the Rust bindings. See bindgen requirements for more information. Also ensure that LIBCLANG_PATH is set, as some systems do not do so by default. libclang is only required if buildtime_bindgen is enabled.

  • cmake if self-building via the bundled feature. The current bundled release is release-2.1.12-stable.

  • pkg-config if not self-building via the bundled feature.

  • buildtime_bindgen is an optional feature, enabled by default, which indicates that the Rust libevent bindings should be generated at build time.

  • LIBEVENT_SYS_BINDGEN_FILE is an environment variable indicating the path of the file containing the pregenerated Rust bindings which must be populated when buildtime_bindgen is not enabled, and it is only applicable in this case.

Building

Depends on libevent-dev or equivalent to be installed on the system. It can be found in most distro's package managers or from the libevent website linked above.

Once that is installed just use cargo build.

Dependencies