pub struct ProjectSnapshot {
pub name: String,
pub version: Option<String>,
pub relative_path: RelativePath,
pub config_anchor: Option<RelativePath>,
pub source_directory: RelativePath,
pub state: ProjectState,
pub diagnostics: Vec<WorkspaceDiagnostic>,
pub origin: ProjectOrigin,
pub exposed_modules: Option<Vec<String>>,
}Expand description
A deterministic, provider-neutral snapshot of a project.
Fields§
§name: StringThe project name. A synthesized project (see
ProjectOrigin::Synthesized) carries the explicit name from
DiscoveryRequest::cli_overlay’s project.name, when the request
supplied one; otherwise it emits "" here; a later provider-synthesis
step fills it in.
version: Option<String>The project version, when configured.
relative_path: RelativePathThe project path relative to the development root.
config_anchor: Option<RelativePath>The project configuration path, when one exists.
source_directory: RelativePathThe source directory relative to this project’s Self::relative_path.
state: ProjectStateThe project state.
diagnostics: Vec<WorkspaceDiagnostic>Project diagnostics, sorted by project path, path, code, severity, and message.
origin: ProjectOriginWhere this project came from.
exposed_modules: Option<Vec<String>>The modules this project exposes. None when not yet determined;
Some(vec![]) means the project exposes no modules.