pub fn encode(root: &Path) -> Result<Vec<u8>, Error>Expand description
Encode a filesystem path as canonical NAR bytes. Returns the
magic-prefixed byte stream byte-equivalent with nix store dump-path <path>.
ยงErrors
Returns the underlying std::io::Error for any filesystem
read failure (symlink readlink, missing entries, etc.).