#nix #bindings #build #nixrs

sys nixrs-sys

nix bindings for Rust

1 unstable release

0.1.0 May 25, 2024

#91 in #nix

Download history 161/week @ 2024-05-20 19/week @ 2024-05-27 4/week @ 2024-06-03

184 downloads per month
Used in nixrs

MIT license

2KB

nixrs

Nix binding for Rust

example

See example

fn eval() -> Result<()> {
  init()?;
  let mut state = State::new(Store::new("daemon")?)?;
  let libclang = &state.eval("(import <nixpkgs> {}).libclang")?;
  dbg!(state.build(libclang)?);
  Ok(())
}

No runtime deps

~0–1.8MB
~36K SLoC