Skip to main content

Module graph

Module graph 

Source

Structs§

Edge
Graph
Node
TargetProperties
Filesystem properties of an edge target, probed during graph building. Stored per-target on the Graph, not per-edge.

Enums§

NodeType

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 URI (has a scheme per RFC 3986). A scheme is [a-zA-Z][a-zA-Z0-9+.-]*: — e.g., http:, mailto:, ftp:, tel:.
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.