#nix #binding #state #bibnding

nixrs

nix bibnding for rust

1 unstable release

0.1.0 May 25, 2024

#37 in #nix

Download history 171/week @ 2024-05-23 9/week @ 2024-05-30 3/week @ 2024-06-06

183 downloads per month

MIT license

19KB
480 lines

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(())
}

Dependencies

~0.3–2.6MB
~54K SLoC