Module reader

Source
Expand description

Parser for the Nix archive format, aka NAR.

NAR files (and their hashed representations) are used in C++ Nix for a variety of things, including addressing fixed-output derivations and transferring store paths between Nix stores.

Modules§

async
read 🔒
Helpers for reading crate::nar::wire format.

Macros§

try_or_poison 🔒

Structs§

ArchiveReader 🔒
DirReader
A directory iterator, yielding a sequence of Nodes. It must be fully consumed before reading further from the DirReader that produced it, if any.
Entry
FileReader
File contents, readable through the Read trait.

Enums§

ArchiveReaderStatus 🔒
We use a stack of statuses to:
Node

Functions§

open
Start reading a NAR file from reader.

Type Aliases§

Reader