pub(crate) enum WorkspaceError {
Show 20 variants
Read {
path: PathBuf,
source: Error,
},
Manifest {
path: PathBuf,
source: TomlError,
},
NoMembers,
MetadataSpawn(Error),
MetadataFailed {
status: ExitStatus,
stderr: String,
},
MetadataDecode(Box<DeserializeError>),
Duplicate(String),
UnknownUnit(String),
NoManifestDirectory(PathBuf),
ManifestNotLoaded(PathBuf),
NoPackageTable(String),
MissingVersionSource(String),
InvalidVersion {
version: String,
source: Error,
},
IncompleteVersionGroup {
version_source: VersionSource,
missing: Vec<String>,
},
ConflictingVersionGroup {
version_source: VersionSource,
members: Vec<String>,
},
UnselectedDependencyConsumers {
dependency: String,
missing: Vec<String>,
},
InvalidRequirement {
consumer: String,
dependency: String,
requirement: String,
source: Error,
},
UnsupportedDependencyRequirement {
consumer: String,
dependency: String,
requirement: String,
version: String,
},
MissingDependencySource {
consumer: String,
dependency: String,
},
Stale {
path: PathBuf,
},
}Expand description
A Cargo workspace discovery, planning, or edit failure.
Variants§
Read
A workspace file cannot be read.
Manifest
A manifest is not valid TOML.
NoMembers
cargo metadata lists no workspace members.
MetadataSpawn(Error)
cargo metadata could not be started.
MetadataFailed
cargo metadata failed.
MetadataDecode(Box<DeserializeError>)
cargo metadata printed output that does not decode.
Duplicate(String)
Two workspace members share a package name.
UnknownUnit(String)
A proposal names a package outside the workspace.
NoManifestDirectory(PathBuf)
A member manifest path has no parent directory.
ManifestNotLoaded(PathBuf)
A member manifest was not parsed along with the workspace.
NoPackageTable(String)
A member manifest has no [package] table.
MissingVersionSource(String)
A member’s version is neither literal nor inherited from the workspace.
InvalidVersion
A version is not strict semver.
IncompleteVersionGroup
A proposal covers only part of a shared version group.
Fields
version_source: VersionSourceWhere the group’s version is set.
ConflictingVersionGroup
A shared version group received different targets.
Fields
version_source: VersionSourceWhere the group’s version is set.
UnselectedDependencyConsumers
A shared dependency entry would change for packages outside the proposal.
Fields
InvalidRequirement
A dependency requirement is not a valid semver requirement.
Fields
UnsupportedDependencyRequirement
A requirement is too complex to rewrite safely.
Fields
MissingDependencySource
No manifest entry matches a dependency that cargo metadata reports.
Stale
A file changed between planning and applying.
Trait Implementations§
Source§impl Debug for WorkspaceError
impl Debug for WorkspaceError
Source§impl Display for WorkspaceError
impl Display for WorkspaceError
Source§impl Error for WorkspaceError
impl Error for WorkspaceError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()