Structs§
- Include
- Represents a pattern matched include directive.
- Include
Node - Represents a particular include file.
- Include
Node Weight - Represents the payload for a node in the graph.
Functions§
- compute_
identity - Compute a Sha256 + Base58 encoded identity for a data slice.
- decode_
data_ as_ utf8 - get_
root_ node - Get the root node payload from the graph
- graph_
to_ dot - Get a
dot/graphvizrepresentation of the graph. - graph_
to_ node_ vec - Get a flat vector of
IncludeNodeinstances in no specific order. - graph_
to_ stdout - Print the graph as a tree view to
stdout. - parse_
includes - Parse the specified text to extract all relative and absolute include directives. See: https://www.wihlidal.com/blog/pipeline/2018-10-04-parsing-shader-includes/
- path_
exists - Check if a given path exists on the file system.
- path_
strip_ base - Strip the working directory prefix from an include file path
- path_
to_ string - Convert a path into a string
- read_
file - Read a file in its entirety into a byte vector.
- resolve_
includes - Extract resolved include directives from the specified text.
- traverse_
build - Traverse the graph in order to construct the structure and meta data.
- traverse_
flatten - Traverse the graph in order to flatten the text for the root node.
- traverse_
patch - Traverse the graph in order to patch in Merkle identities for all include directives.