nixide/nix-bindings-bindgen-raw
Robert Hensing 55eacf43c3 maint: Move to /rust/* to /
This makes it easier for tooling to find the Rust stuff.
Rust/non-rust is not a useful distinction in this repo anymore anyway.
2025-10-26 23:29:13 +01:00
..
include maint: Move to /rust/* to / 2025-10-26 23:29:13 +01:00
src maint: Move to /rust/* to / 2025-10-26 23:29:13 +01:00
build.rs maint: Move to /rust/* to / 2025-10-26 23:29:13 +01:00
Cargo.toml maint: Move to /rust/* to / 2025-10-26 23:29:13 +01:00
README.md maint: Move to /rust/* to / 2025-10-26 23:29:13 +01:00

nix-bindings-bindgen-raw

This crate contains generated bindings for the Nix C API. You should not have to use this crate directly, and so you should probably not add it to your dependencies. Instead, use the nix-bindings-util, nix-bindings-store and nix-bindings-expr crates, which should be sufficient.

Design

Rust bindgen currently does not allow "layered" libraries to be split into separate crates. For example, the expr crate would have all-new types that are distinct and incompatible with the store crate.

Ideally bindgen will support reusing already generated modules, and we could move the code generation into the appropriate crates, so that the system dependencies of each crate become accurate.