overhaul nixide-sys/build.rs

This commit is contained in:
do butterflies cry? 2026-04-02 09:52:29 +10:00
parent 32cd7e0587
commit 46baf3cd2e
Signed by: cry
GPG key ID: F68745A836CA0412
7 changed files with 150 additions and 608 deletions

23
nixide-sys/src/lib.rs Normal file
View file

@ -0,0 +1,23 @@
//! # nixide-sys
//!
//! Unsafe direct FFI bindings to `libnix` C API.
//!
//! ## Safety
//!
//! These bindings are generated automatically and map directly to the C API.
//! They are unsafe to use directly. Prefer using the high-level safe API in the
//! parent crate unless you know what you're doing.
//!
//! The [nixide] crate should also act as good explanation of how
//! these bindings, and hence `libnix` itself, are expected to be used.
mod bindings {
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(rustdoc::bare_urls)]
#![allow(rustdoc::invalid_html_tags)]
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
}
pub use bindings::root::*;