Skip to main content

ReleaseArtifacts

Struct ReleaseArtifacts 

Source
pub struct ReleaseArtifacts {
    pub assets: Vec<String>,
    pub source_tarball: Option<SourceTarball>,
    pub repo_slug: Option<String>,
    pub homebrew: Option<HomebrewFormula>,
}
Expand description

The concrete release artifacts the coordinator threads from the build phase into every adapter’s publish (ADR-0002 §2).

The two distribution adapters that repackage already-produced outputs need inputs no single ecosystem build yields on its own: binary uploads the asset paths gathered from every target’s build, and homebrew’s formula bump needs the published source tarball’s URL + sha256. The coordinator computes this once, after build-all, and exposes it through EffectCtx::artifacts. The REAL registry adapters (cargo / python / go) ignore it — their own CLI finds its artifacts. This is an in-memory coordinator↔adapter hand-off only: it is never serialized or journaled, so it carries no schema version of its own.

Fields§

§assets: Vec<String>

Built asset/binary paths, aggregated across every target’s build in cut order — the upload set for the binary / GitHub-Release adapter.

§source_tarball: Option<SourceTarball>

The published source tarball a downstream formula bump points at, when the coordinator could resolve it (a GitHub origin remote). None when the repo has no resolvable GitHub remote.

§repo_slug: Option<String>

The resolved owner/repo GitHub slug of the cut’s origin remote, when the coordinator could parse one and the cut carries a GitHub-backed distribution target (binary or homebrew). The binary adapter records the GitHub-Release page URL for this slug as its receipt’s PublishReceipt::remote_url. None for a cut with no such target or no resolvable GitHub remote.

§homebrew: Option<HomebrewFormula>

The Homebrew formula inputs the homebrew adapter’s first-formula bootstrap needs beyond the Self::source_tarball URL + sha256 — the destination tap and the SPDX license the generated .rb records. None for a cut with no homebrew target (and always None for every other adapter, which never reads it). Threaded from the plan by the coordinator alongside Self::source_tarball.

Trait Implementations§

Source§

impl Clone for ReleaseArtifacts

Source§

fn clone(&self) -> ReleaseArtifacts

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 ReleaseArtifacts

Source§

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

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

impl Default for ReleaseArtifacts

Source§

fn default() -> ReleaseArtifacts

Returns the “default value” for a type. Read more
Source§

impl Eq for ReleaseArtifacts

Source§

impl PartialEq for ReleaseArtifacts

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ReleaseArtifacts

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.