Skip to main content

Module builders

Module builders 

Source
Expand description

Builders turn a source’s (path, bytes) records into graph nodes and edges. v0.8 ships the fs node builder plus two text builders (parsers): markdown (edges) and frontmatter (edges + metadata).

Modules§

frontmatter
The frontmatter builder: emits link edges from frontmatter link-target values, plus the parsed frontmatter block as metadata on the file it read. It is colocated — its metadata is about its own file — so its drift rides the file’s fs hash; it contributes no hash of its own.
fs
The fs builder: the base graph. Emits a node per entry, typed by stat, plus a symlink edge per symlink. It does not hash — drft auto-hashes at the wiring seam (see crate::graphs).
markdown
The markdown builder: emits link edges from [text](path) body links. It contributes no node metadata — cross-graph linkage to fs nodes happens at compose by path coincidence.

Functions§

link_edge
Turn a raw link string discovered by a text builder into an edge from source to its resolved target.
link_edges
Resolve a parser’s discovered links into edges, one per (source, target).