Skip to main content

Module project

Module project 

Source
Expand description

Module project loading, upward discovery, and paired persistence.

ModuleProject loads an exact module.json path and remembers the sibling module-lock.json path beside it. ModuleProject::discover walks upward from a caller-supplied start path until it finds module.json or reaches a .git boundary, so project discovery returns Ok(None) when no ancestor project exists. ManifestDocument preserves unknown manifest extension fields and validates each edit before it lands.

Structs§

LockedLockfile
A module-lock.json held under its exclusive advisory lock.
ManifestDocument
A lossless module.json document paired with its validated manifest view.
ModuleProject
A loaded module project rooted at an exact module.json path.

Enums§

ManifestDocumentError
An error parsing or editing a module.json document.
ProjectError
An error loading, discovering, or reloading a module project.
ProjectFileKind
A manifest-referenced file required for a valid module project.
ProjectValidationError
An error validating a loaded module project.