pub struct ArtifactKey {
pub crate_id: CrateId,
pub features: FeatureSet,
pub crate_types: Vec<RustCrateType>,
pub target: Target,
pub rustc_version: RustcVersion,
pub profile: Profile,
pub kind: ArtifactKind,
}Expand description
Semantic artifact identity — used for BUILD PLANNING and ANALYTICS only.
NOT the cache lookup key! Cache lookup uses the composite key
(c_metadata, target, rustc_version) where c_metadata comes from
cargo’s -C metadata flag.
Fields§
§crate_id: CrateIdCrate name and version from crates.io.
features: FeatureSetFeature set the artifact was built with.
crate_types: Vec<RustCrateType>Crate types rustc was asked to emit.
target: TargetFor Rlib: compilation target. For ProcMacro: HOST triple.
rustc_version: RustcVersionToolchain the artifact was built with.
profile: ProfileObserved from actual rustc args, not assumed.
kind: ArtifactKindPrimary artifact kind.
Trait Implementations§
Source§impl Clone for ArtifactKey
impl Clone for ArtifactKey
Source§impl Debug for ArtifactKey
impl Debug for ArtifactKey
Source§impl<'de> Deserialize<'de> for ArtifactKey
impl<'de> Deserialize<'de> for ArtifactKey
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 ArtifactKey
Source§impl PartialEq for ArtifactKey
impl PartialEq for ArtifactKey
Source§impl Serialize for ArtifactKey
impl Serialize for ArtifactKey
impl StructuralPartialEq for ArtifactKey
Auto Trait Implementations§
impl Freeze for ArtifactKey
impl RefUnwindSafe for ArtifactKey
impl Send for ArtifactKey
impl Sync for ArtifactKey
impl Unpin for ArtifactKey
impl UnsafeUnpin for ArtifactKey
impl UnwindSafe for ArtifactKey
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.