nixide/nixide-sys/src/lib.rs

28 lines
775 B
Rust
Raw Normal View History

2026-04-02 09:52:29 +10:00
//! # 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"));
}
2026-04-10 10:12:53 +10:00
pub use bindings::*;
2026-04-02 09:53:00 +10:00
mod exts;
#[allow(unused_imports)]
pub use exts::*;