Skip to main content

Module vfs

Module vfs 

Source
Expand description

Virtual filesystem abstraction for dependency graph construction.

The Vfs trait abstracts filesystem access so the graph-building pipeline can operate transparently on the real filesystem (OsVfs) or on git tree objects (GitTreeVfs). This enables in-process git ref diffs without spawning worktrees.

Structs§

GitTreeVfs
Reads files from a git tree object, enabling in-process git ref diffs without spawning worktrees. Construction walks the tree once to build an in-memory index; subsequent reads decompress blobs from the pack.
OsVfs
Pass-through to std::fs. Zero overhead for normal (non-git) operation.
OxcVfsAdapter
Adapter that wraps our Vfs trait to satisfy oxc_resolver::FileSystem.
VfsMetadata
Metadata returned by Vfs::metadata.

Traits§

Vfs
Filesystem abstraction for the graph-building pipeline.