Oxidized bindings for the Nix package manager!!
... because it is. I had previously dismissed the comparatively trivial unsafety of these functions, assuming the caller is aware of the purpose of them and reasonably familiar with manual memory management. That would have been fine in an unsafe by default language like C++, which Rust is not. (cherry picked from commit b43455fdd0468f067741a79a7031ba2fa907f0eb) |
||
|---|---|---|
| .claude | ||
| .vscode | ||
| dev | ||
| doc/hacking | ||
| rust | ||
| .envrc | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
nix_bindings_* crates
Use the Nix C API from Rust.
Hacking
The following will open a shell with dependencies, and install pre-commit for automatic formatting.
$ nix develop
VSCode
rust-analyzer
If the rust-analyzer extension fails, make sure the devShell was loaded into VSCode via Nix Env Selector or direnv.