overhaul nixide-sys/build.rs
This commit is contained in:
parent
32cd7e0587
commit
46baf3cd2e
7 changed files with 150 additions and 608 deletions
23
nixide-sys/src/lib.rs
Normal file
23
nixide-sys/src/lib.rs
Normal 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::*;
|
||||
Loading…
Add table
Add a link
Reference in a new issue