Modules§
Structs§
- Store
Path - Represents a path in the Nix store (a direct child of STORE_DIR).
- Store
Path Ref - Like StorePath, but with a
&strfor the name.
Enums§
- Parse
Store Path Error - Errors that can occur when parsing a literal store path
- Parse
Store Path Name Error - Error returned by
validate_name.
Constants§
Statics§
- NAME_
CHARS 🔒 - NAME_CHARS contains
truefor bytes that are valid in store path names.
Functions§
- build_
ca_ path - This builds a store path for a content-addressed path (used for fetches and FODs).
- build_
output_ path - Builds an input-addressed store path.
- build_
text_ path - This builds a store path, for a CAHash::Text type store path. If you don’t want to have to pass the entire contents, you might want to use build_text_path_from_content_digest instead.
- build_
text_ path_ from_ content_ digest - This builds a store path, for a CAHash::Text type store path.
content_digestneeds to be the sha256 digest of the contents. If you have the contents as a byte slice, you can also use build_text_path. - compress_
hash - compress_hash takes an arbitrarily long sequence of bytes (usually a hash digest), and returns a sequence of bytes of length OUTPUT_SIZE.
- hash_
placeholder - Nix placeholders (i.e. values returned by
builtins.placeholder) are used to populate outputs with paths that must be string-replaced with the actual placeholders later, at runtime. - validate_
name - Checks a given &u8 to match the restrictions for StorePath::name, and returns the name as &str if successful.
- validate_
name_ as_ os_ str - Checks a given OsStr to match the restrictions for StorePath::name, and returns the name as &str if successful.