Skip to main content

Module graph

Module graph 

Source

Structs§

Edge
EdgeType
Namespaced edge type in the format parser:type. Validated on construction — accessors are infallible.
Graph
Node

Enums§

NodeType

Functions§

build_graph
Build a graph from files in root, using configured parsers to extract links. Computes BLAKE3 content hashes for all nodes.
hash_bytes
Hash file contents with BLAKE3, returning b3:<hex>.
normalize_relative_path
Normalize a relative path by resolving . and .. components using Path APIs. Does not touch the filesystem. Always returns forward-slash separated paths. Preserves leading .. that escape above the root — these indicate graph escape.
resolve_link
Resolve a link target relative to a source file, producing a path relative to the graph root. Uses Path::join for correct platform-aware path handling.