Skip to main content

Module graph

Module graph 

Source

Structs§

Edge
Graph
Node

Enums§

NodeType
What kind of filesystem entity this node represents.

Functions§

build_graph
Build a graph from files in root.
hash_bytes
Hash file contents with BLAKE3, returning b3:<hex>.
is_uri
Check if a target string is a valid URI.
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.