feat: Add crate nix-c-raw

See README. Most of this is in accordance with the bindgen introduction.

The c_headers function was taken from Zach Mitchell's work on bindings.

Co-authored-by: Zach Mitchell <zmitchell@fastmail.com>
(cherry picked from commit 83d8ae6b26d341bbd452a77d7361f58c06a2d322)
This commit is contained in:
Robert Hensing 2024-02-16 09:45:29 +01:00
parent 4dca986fe2
commit 858bec68bc
7 changed files with 517 additions and 0 deletions

11
rust/nix-c-raw/Cargo.toml Normal file
View file

@ -0,0 +1,11 @@
[package]
name = "nix-c-raw"
version = "0.1.0"
edition = "2021"
build = "build.rs"
[lib]
[build-dependencies]
bindgen = "0.69.4"
pkg-config = "0.3.30"