pub struct NodeAdapter { /* private fields */ }Expand description
The node release adapter, operating as release-please, changesets, or
npm-publish.
Implementations§
Trait Implementations§
Source§impl ReleaseAdapter for NodeAdapter
impl ReleaseAdapter for NodeAdapter
Source§fn adapter(&self) -> Adapter
fn adapter(&self) -> Adapter
The adapter identity this implementation operates as (a single struct may
back several related identities, e.g.
cargo-publish and cargo-dist).Source§fn is_ci_delegated(&self) -> bool
fn is_ci_delegated(&self) -> bool
Whether this adapter’s publish is CI-delegated — its release artifact
is produced out-of-band by the tag-triggered CI (e.g.
cargo-dist’s
release.yml, a release-please merge job, PyPI’s trusted-publisher
workflow), never by the engine’s publish step from this
host. The coordinator skips such a target in publish-all (journalling a
target_delegated fact) rather than calling publish and treating its
honest AdapterError::Unsupported as a phase failure — which would leave
the cut stuck after an irreversible crates.io publish. Read moreSource§fn dry_run(
&self,
_ctx: &EffectCtx<'_>,
_t: &AdapterTarget,
) -> Result<DryRunReport, AdapterError>
fn dry_run( &self, _ctx: &EffectCtx<'_>, _t: &AdapterTarget, ) -> Result<DryRunReport, AdapterError>
Re-runnable, side-effect-free preview: the exact commands a real cut
would run for
target. Read moreSource§fn build(
&self,
ctx: &EffectCtx<'_>,
_t: &AdapterTarget,
) -> Result<BuildArtifacts, AdapterError>
fn build( &self, ctx: &EffectCtx<'_>, _t: &AdapterTarget, ) -> Result<BuildArtifacts, AdapterError>
Re-runnable build of the target’s publishable artifacts. Read more
Source§fn publish(
&self,
ctx: &EffectCtx<'_>,
t: &AdapterTarget,
) -> Result<PublishReceipt, AdapterError>
fn publish( &self, ctx: &EffectCtx<'_>, t: &AdapterTarget, ) -> Result<PublishReceipt, AdapterError>
Per-target irreversible publish; returns the durable
PublishReceipt. Read moreSource§fn timeout(&self) -> Duration
fn timeout(&self) -> Duration
Mandatory wall-clock ceiling for a single publish of this adapter — a
hung publish must not wedge a run (ADR-0002 §1).
Source§fn ci_owns_github_release(&self) -> bool
fn ci_owns_github_release(&self) -> bool
Whether this adapter’s tag-triggered CI owns the shared GitHub Release —
its workflow creates and finalizes the Release object (and uploads the
cross-platform binaries into it), so the coordinator must NOT create the
Release itself or the two clash over the same tag
(
coordinator-release-vs-cargo-dist-ownership). Read moreSource§fn verify(
&self,
ctx: &EffectCtx<'_>,
receipt: &PublishReceipt,
) -> Result<VerifyOutcome, AdapterError>
fn verify( &self, ctx: &EffectCtx<'_>, receipt: &PublishReceipt, ) -> Result<VerifyOutcome, AdapterError>
Read-only remote reconcile of a receipt against registry state. Read more
Auto Trait Implementations§
impl Freeze for NodeAdapter
impl RefUnwindSafe for NodeAdapter
impl Send for NodeAdapter
impl Sync for NodeAdapter
impl Unpin for NodeAdapter
impl UnsafeUnpin for NodeAdapter
impl UnwindSafe for NodeAdapter
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
Mutably borrows from an owned value. Read more