pub fn load_workspace(
manifest_path: impl AsRef<Path>,
) -> Result<PackageGraph, WorkspaceError>Expand description
Load a workspace or a single package starting from the given manifest
Path. Workspace members and local path dependencies are resolved
recursively against the filesystem; a topologically-sorted
PackageGraph is returned.
This is the convenience form for callers that only have local
packages. For registry / patch / dev-dep policy, use
load_workspace_with_options.
§Errors
Returns a WorkspaceError when loading fails — the manifest is
missing or unreadable, contains neither [package] nor
[workspace], a workspace member or local path dependency cannot
be resolved, package names collide, a dependency cycle is
detected, or (because this runs with the strict port policy) a
foundation-port dependency has not been prepared.