Module nix_compat::aterm::parser

source Β·
Expand description

This module implements parsing code for some basic building blocks of the ATerm format, which is used by C++ Nix to serialize Derivations.

Functions§

  • Parse a field in double quotes, undo any escaping, and return the unquoted and decoded Vec<u8>.
  • Parse a bstr and undo any escaping (which is why this needs to allocate).
  • Parse a field in double quotes, undo any escaping, and return the unquoted and decoded String, if it’s valid UTF-8. Or fail parsing if the bytes are no valid UTF-8.
  • Parse a list of string fields (enclosed in brackets)