Crate nix_compat
source ·Modules§
- aterm 🔒
- NAR info files describe a store path in a traditional Nix binary cache. Over the wire, they are formatted as “Key: value” pairs separated by newlines.
- Implements the slightly odd “base32” encoding that’s used in Nix.
- Contains code parsing some of the Nixcpp config files etc. left by Nix on the local disk.
- Module parsing and emitting the wire format used by Nix, both in the nix-daemon protocol as well as in the NAR format.
Structs§
- Protocol versions are represented as a u16. The upper 8 bits are the major version, the lower bits the minor. This is not aware of any endianness, use [crate::wire::read_u64] to get an u64 first, and the try_from() impl from here if you’re receiving over the Nix Worker protocol.