libubox_sys/lib.rs
1//! Raw FFI bindings to OpenWrt's [libubox].
2//!
3//! See the workspace `README.md` for build-host requirements (CMake,
4//! `pkg-config`, `libjson-c-dev`) and feature flags (`json`, `bindgen`,
5//! `static`).
6//!
7//! The committed bindings live in `src/bindings/pregenerated.rs` and are
8//! used unless the `bindgen` feature is enabled.
9//!
10//! [libubox]: https://git.openwrt.org/project/libubox.git
11
12mod bindings {
13 #![allow(non_camel_case_types, non_snake_case, non_upper_case_globals)]
14 #![allow(deref_nullptr, clippy::all)]
15
16 include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
17}
18
19pub use bindings::*;