working sys level bindings :yippie:

This commit is contained in:
do butterflies cry? 2026-03-13 23:20:49 +10:00
parent 4508aeab76
commit e9022e675b
Signed by: cry
GPG key ID: F68745A836CA0412
12 changed files with 3091 additions and 45 deletions

View file

@ -1,14 +1,17 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
//! # 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.
#[cfg(test)]
mod tests {
use super::*;
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(rustdoc::bare_urls)]
#![allow(rustdoc::invalid_html_tags)]
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));