Crate include_merkle

Source

Structs§

Include
Represents a pattern matched include directive.
IncludeNode
Represents a particular include file.
IncludeNodeWeight
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/graphviz representation of the graph.
graph_to_node_vec
Get a flat vector of IncludeNode instances 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.

Type Aliases§

IncludeNodeGraph
IncludeNodeLevel