Search

Lib.rs

› Filesystem
#command #nix-flakes #nixos #evaluate #along #developer-experience

nix_rs

Rust library for interacting with the Nix command

by Sridhar Ratnakumar and 13 contributors

  • Install
  • GitHub repo (juspay)
  • Documentation (github.io)
  • Home (omnix.page)

22 releases (3 stable)

1.3.0 Jul 15, 2025
1.1.0 Feb 17, 2025
1.0.0 Aug 8, 2024
0.5.0 Jun 5, 2024
0.2.2 Oct 29, 2023

#853 in Filesystem

21 downloads per month
Used in 9 crates

Apache-2.0

97KB
2.5K SLoC

Rust crate to interact with Nix

This crate exposes various types representing what nix command gives us, along with a from_nix command to evaluate them.


nix_rs

Crates.io

A Rust crate to interact with the Nix command. nix_rs also provides the needed Rust types which are guaranteed to compile in wasm.

Dependencies

~15–36MB
~479K SLoC

  • bytesize 1.3+serde
  • cfg-if
  • optional clap+derive+env
  • colored 2.0
  • is_proc_translated
  • lazy_static
  • nonempty 0.10+serialize
  • os_info
  • regex
  • serde+derive
  • serde_json
  • serde_qs 0.13
  • serde_with+json
  • shell-words
  • sysinfo 0.29.10
  • tempfile
  • thiserror 1.0
  • tokio+full
  • tracing
  • url+serde
  • which 4.4
  • whoami
Related: nixci, omnix-ci, omnix-cli, omnix-common, omnix-develop, omnix-health, omnix-init, nix_health
See also: deadnix, nix-index, nix-installer, containeryard, nixy-rs, serde_evaluate, no-proxy, nix-nar, harmonia-store-core, airshipper, consortium-nix

Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski. It contains data from multiple sources, including heuristics, and manually curated data. Content of this page is not necessarily endorsed by the authors of the crate. This site is not affiliated with nor endorsed by the Rust Project. If something is missing or incorrect, please file a bug.