Expand description
Core Nix store semantics.
This crate provides the fundamental types and pure computation logic for working with the Nix store. It is intentionally IO-free - all operations are pure functions that operate on values, enabling easy testing and composition.
Architecture: This is the Core Layer in Harmonia’s store architecture.
See docs/architecture/harmonia-store-structure.md for details.
§Key Modules
hash- Content addressing, hash types, hash computationstore_path- Store path types, parsing, validationderivation- Derivation (.drv) file format and semanticssignature- Cryptographic signatures for store pathsrealisation- Store path realisation tracking
§Design Principles
- No IO: No filesystem, no network, minimal
async - Pure functions: Deterministic, testable, referentially transparent
- Explicit errors: All fallible operations return
Result - Memory-bounded: Stream-friendly, no unbounded buffers