Struct cargo::core::dependency::Artifact
source · pub struct Artifact {
inner: Rc<Vec<ArtifactKind>>,
is_lib: bool,
target: Option<ArtifactTarget>,
}
Expand description
The presence of an artifact turns an ordinary dependency into an Artifact dependency. As such, it will build one or more different artifacts of possibly various kinds for making them available at build time for rustc invocations or runtime for build scripts.
This information represents a requirement in the package this dependency refers to.
Fields§
§inner: Rc<Vec<ArtifactKind>>
§is_lib: bool
§target: Option<ArtifactTarget>
Implementations§
source§impl Artifact
impl Artifact
pub(crate) fn parse( artifacts: &StringOrVec, is_lib: bool, target: Option<&str> ) -> CargoResult<Self>
pub(crate) fn kinds(&self) -> &[ArtifactKind]
pub(crate) fn is_lib(&self) -> bool
pub(crate) fn target(&self) -> Option<ArtifactTarget>
Trait Implementations§
source§impl PartialEq<Artifact> for Artifact
impl PartialEq<Artifact> for Artifact
impl Eq for Artifact
impl StructuralEq for Artifact
impl StructuralPartialEq for Artifact
Auto Trait Implementations§
impl RefUnwindSafe for Artifact
impl !Send for Artifact
impl !Sync for Artifact
impl Unpin for Artifact
impl UnwindSafe for Artifact
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes