nixstore
Read-only Nix store path-info over db.sqlite (tier 3 of the Nix→Rust ladder).
Doctrine: query ValidPaths / Refs via DI 3.0 PathInfoStore cap + effect!; never shell out to nix; never write the DB.
Library
open_db/SqlitePathInfoStore— SQLite URImode=roPathInfo— v1-shaped JSON fields (narHashSRI, full paths,references)PathInfoStorecap +MockPathInfoStorefor assay / unit tests- Closure size via BFS over references
Assay (pathInfo claim) and nixq (path-info subcommand) depend on this crate.
Dependency rule: no nixq / nixdrv deps (avoids workspace cycle: nixdrv → nixq → nixstore).
CLI
Default DB: {store}/var/nix/db/db.sqlite with store defaulting to /nix.
Packaging (v1)
Devenv + moon only (cargo test -p nixstore). No NixOS module yet.
Non-goals
- GC delete / roots planner
- Daemon / remote store protocol
- NAR walk / hash from filesystem
--allfull-store dump- JSON format v2/v3