Skip to main content

BumpPlan

Struct BumpPlan 

Source
pub struct BumpPlan {
    pub level: BumpLevel,
    pub from_version: String,
    pub to_version: String,
    pub pin_rewrites: Vec<PinRewrite>,
    pub changelog_finalize: bool,
    pub bump_hook: Option<String>,
}
Expand description

The engine-owned version-bump phase’s deterministic edit set (release-rust- workspace-multicrate facet 2) — the content-addressed intent the PlanPhase::Bump phase applies at cut time.

The human supplies only the semantic bump level; the engine computes to_version from from_version (the current manifest version) + that level (major → X+1.0.0, minor → X.Y+1.0, patch → X.Y.Z+1). There is no hand-typed literal version — this honours the single-source-version decision (release-drop-version-flag): the number is derived, never dictated. Every field is part of the sealed pre-image, so a different bump level or a different derived edit set is drift.

Fields§

§level: BumpLevel

The semantic bump level the human requested (--bump major|minor|patch).

§from_version: String

The current workspace version the bump was computed from (read from [workspace.package] version).

§to_version: String

The computed new version the bump lands at — set into [workspace.package] version and threaded into every publish/tag as the release version.

§pin_rewrites: Vec<PinRewrite>

The intra-workspace =-version pin rewrites the bump applies, one per (dependent-crate → pinned workspace dependency) edge whose pin tracks the bumped version (e.g. the bin’s lib = "=<from>"lib = "=<to>"). Sorted, deterministic; empty for a single-crate workspace with no intra-workspace pins.

§changelog_finalize: bool

Whether the bump finalizes the CHANGELOG ([Unreleased] → a dated [to_version] section). The concrete date is a cut-time value and is deliberately not sealed (it would make the plan_id change per day); the changelog mode that governs the finalize is already part of the hashed contract. false only when the contract declares no changelog machinery.

§bump_hook: Option<String>

The contract-declared command the engine runs in the clean checkout after the version edits (release.bump_hook), so version-embedding artifacts (test snapshots that embed the version) regenerate against the new version before the bump commit — release-rust-workspace-multicrate facet 3. null = no hook. Copied from the (already-hashed) contract; carried here so the executor need not re-read it.

Trait Implementations§

Source§

impl Clone for BumpPlan

Source§

fn clone(&self) -> BumpPlan

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BumpPlan

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for BumpPlan

Source§

impl PartialEq for BumpPlan

Source§

fn eq(&self, other: &BumpPlan) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for BumpPlan

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for BumpPlan

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.