#[non_exhaustive]pub struct EcosystemSpec {
pub manifest: Option<String>,
pub lockfile: Option<String>,
pub artifact: Option<String>,
pub publish: Option<String>,
pub registry: Option<String>,
}Expand description
A repository-declared ecosystem whose release blocks are implemented by
named steps under steps.
Built-in ecosystems (cargo and bun) are selected by manifest file name
unless a package names an ecosystem here. Any other manifest names an
ecosystem or configures its own driver and publisher.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.manifest: Option<String>Named step implementing the Manifest block. Omit when a manifest driver reads and writes the version directly.
lockfile: Option<String>Named step implementing the Lockfile block. Must list its lockfile path
in writes.
artifact: Option<String>Named step implementing the Artifact block. Omit when unused.
publish: Option<String>Named step implementing the publish upload block. Omit when the package releases on GitHub only or declares its own publish block.
registry: Option<String>Named step querying whether a package version is already published; exit zero means already listed. Omit when unchecked.
Implementations§
Source§impl EcosystemSpec
impl EcosystemSpec
Sourcepub fn step_names(&self) -> impl Iterator<Item = &str>
pub fn step_names(&self) -> impl Iterator<Item = &str>
Every step name referenced by any block of this ecosystem.
Trait Implementations§
Source§impl Clone for EcosystemSpec
impl Clone for EcosystemSpec
Source§impl Debug for EcosystemSpec
impl Debug for EcosystemSpec
Source§impl Default for EcosystemSpec
impl Default for EcosystemSpec
Source§impl<'de> Deserialize<'de> for EcosystemSpec
impl<'de> Deserialize<'de> for EcosystemSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for EcosystemSpec
Source§impl PartialEq for EcosystemSpec
impl PartialEq for EcosystemSpec
impl StructuralPartialEq for EcosystemSpec
Auto Trait Implementations§
impl Forget for EcosystemSpec
impl Freeze for EcosystemSpec
impl Move for EcosystemSpec
impl RefUnwindSafe for EcosystemSpec
impl Send for EcosystemSpecwhere
RawVecInner: Send,
impl Sync for EcosystemSpecwhere
RawVecInner: Sync,
impl Unpin for EcosystemSpec
impl UnsafeUnpin for EcosystemSpec
impl UnwindSafe for EcosystemSpecwhere
RawVecInner: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.