pub enum ToolchainSource {
SourceBuild {
url: String,
sha256: String,
},
Prebuilt {
url: String,
sha256: String,
},
Registry {
reference: String,
digest: String,
},
}Expand description
How a toolchain was provisioned. Recorded in the manifest for provenance.
Variants§
SourceBuild
Built from the Homebrew formula’s urls.stable.url source tarball with
the host Command Line Tools, at an absolute cache prefix.
Fields
Prebuilt
Fetched as a self-contained, relocation-free prebuilt vendor archive (the language toolchains: go/node/rust/…).
Fields
Registry
Pulled as a published toolchain artifact from the OCI toolchain registry (single repo, structured tags — see the registry module).
Additive variant: old binaries (which only know source_build /
prebuilt) cannot read a manifest carrying registry — the change is
backward-compatible, not forward-compatible.
Trait Implementations§
Source§impl Clone for ToolchainSource
impl Clone for ToolchainSource
Source§fn clone(&self) -> ToolchainSource
fn clone(&self) -> ToolchainSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolchainSource
impl Debug for ToolchainSource
Source§impl<'de> Deserialize<'de> for ToolchainSource
impl<'de> Deserialize<'de> for ToolchainSource
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ToolchainSource
Source§impl PartialEq for ToolchainSource
impl PartialEq for ToolchainSource
Source§fn eq(&self, other: &ToolchainSource) -> bool
fn eq(&self, other: &ToolchainSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolchainSource
impl Serialize for ToolchainSource
impl StructuralPartialEq for ToolchainSource
Auto Trait Implementations§
impl Freeze for ToolchainSource
impl RefUnwindSafe for ToolchainSource
impl Send for ToolchainSource
impl Sync for ToolchainSource
impl Unpin for ToolchainSource
impl UnsafeUnpin for ToolchainSource
impl UnwindSafe for ToolchainSource
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
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
Compare self to
key and return true if they are equal.