pub enum VersionResolveError {
Mismatch {
requested: String,
mismatches: Vec<VersionMismatch>,
},
InconsistentTree {
versions: Vec<VersionMismatch>,
},
Undeterminable,
}Expand description
Why a single release version could not be resolved from the workspace manifest
(the single source of truth) — the reconciled superset of the old --version
drift guard.
Variants§
Mismatch
A caller-supplied --version disagreed with the version the manifest — and
therefore the cut — would actually publish (release-cut-publish-noop). The
old drift guard, folded in: --version is an optional confirmation, and a
wrong one is refused before any publish. Carries the requested version and the
checkable targets it disagrees with (sorted, one per package).
Fields
mismatches: Vec<VersionMismatch>Every checkable target whose manifest version differs from requested.
InconsistentTree
The tree’s publishable manifests declare more than one distinct version, so there is no single source of truth to derive the release version from — bring the workspace into lockstep first. Carries each checkable target’s package + version (sorted, one per package).
Fields
versions: Vec<VersionMismatch>Every checkable target and the version its manifest declares.
Undeterminable
No manifest version could be detected — every target is a distribution/binary
target or an undetected package — and no --version was supplied, so the
version can neither be derived nor confirmed. Supplying --version resolves
it (there is nothing to confirm against).
Trait Implementations§
Source§impl Clone for VersionResolveError
impl Clone for VersionResolveError
Source§fn clone(&self) -> VersionResolveError
fn clone(&self) -> VersionResolveError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VersionResolveError
impl Debug for VersionResolveError
impl Eq for VersionResolveError
Source§impl PartialEq for VersionResolveError
impl PartialEq for VersionResolveError
impl StructuralPartialEq for VersionResolveError
Auto Trait Implementations§
impl Freeze for VersionResolveError
impl RefUnwindSafe for VersionResolveError
impl Send for VersionResolveError
impl Sync for VersionResolveError
impl Unpin for VersionResolveError
impl UnsafeUnpin for VersionResolveError
impl UnwindSafe for VersionResolveError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.