# nix-rust/nix

Rust friendly bindings to *nix APIs

Repository: https://github.com/nix-rust/nix
Canonical: https://ross.abutalabs.com/products/nix-rust-nix
Language: Rust
License: MIT
License Family: permissive
Topics: rust, rust-bindings, libc, unix
Last push: 2026-05-19T11:29:12+00:00

## Health v2 (maintenance only)
Score: 70/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 83, release rhythm 35, longevity 100
- inputs: {"age_days": 4409, "days_push": 106, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3069, forks 769 (observed 2026-08-28T04:07:41.524172+00:00)

## What it is
A Rust crate providing safe, friendly bindings to Unix-like platform APIs (Linux, macOS, BSD, etc.), wrapping unsafe libc calls in typed, Result-based abstractions. It is one of the most widely downloaded Rust libraries for system-level programming.

## Use cases
- call unix system calls from rust safely
- get hostname or process info in rust
- avoid unsafe libc code in rust
- write cross-platform unix tooling in rust
- manage file descriptors, signals, or processes in rust

## When to choose
- you need safe, idiomatic Rust wrappers around POSIX/*nix syscalls
- you want errno handling handled for you via Result types
- you target Linux, macOS, or BSD from Rust

## When to avoid
- you need Windows-only APIs
- you want a fully unified cross-platform OS abstraction layer
- you need raw unsafe libc access with exact C semantics

## Facets
- artifact type: library
- maturity: active
- function: developer-tools, concurrency, file-system, networking
- domain: developer-tools, operating-systems, cross-platform
- platform: rust, bsd, cross-platform
- tags: libc, unix, system-programming, safe-bindings, syscall, linux, macos

## Member repositories
- nix-rust/nix (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:41.524172+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:28:10.211340+00:00, confidence not recorded.
  - readme: https://github.com/nix-rust/nix (fetched 2026-08-28T04:07:41.524172+00:00, sha 312cec645ea3)
  - registry_crates: https://crates.io/api/v1/crates/nix (fetched 2026-08-29T09:43:23.342856+00:00, sha 9a956e3490ed)
- Data as of 2026-08-30T08:39:29.467469+00:00.
