pub struct CrateInfo { /* private fields */ }Expand description
Information about a crate (which may be in-workspace or a dependency).
Implementations§
Source§impl CrateInfo
impl CrateInfo
Sourcepub fn library_target_name(&self) -> Option<&str>
pub fn library_target_name(&self) -> Option<&str>
The name of the crate’s root library target. This is the target that a dependent would get if they were to depend on this crate.
Sourcepub fn is_proc_macro(&self) -> bool
pub fn is_proc_macro(&self) -> bool
Whether the crate is a procedural macro.
Sourcepub fn normal_deps(&self) -> Select<BTreeSet<CrateDependency>>
pub fn normal_deps(&self) -> Select<BTreeSet<CrateDependency>>
Dependencies required to compile the crate, without procedural macro dependencies.
Sourcepub fn dev_deps(&self) -> Select<BTreeSet<CrateDependency>>
pub fn dev_deps(&self) -> Select<BTreeSet<CrateDependency>>
Dependencies required to compile the tests for the crate, but not needed to compile the crate itself, without procedural macro dependencies.
Sourcepub fn proc_macro_deps(&self) -> Select<BTreeSet<CrateDependency>>
pub fn proc_macro_deps(&self) -> Select<BTreeSet<CrateDependency>>
Procedural macro dependencies required to compile the crate.
Sourcepub fn proc_macro_dev_deps(&self) -> Select<BTreeSet<CrateDependency>>
pub fn proc_macro_dev_deps(&self) -> Select<BTreeSet<CrateDependency>>
Procedural macro dependencies required to compile the tests for the crate, but not needed to compile the crate itself.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CrateInfo
impl<'de> Deserialize<'de> for CrateInfo
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 CrateInfo
impl StructuralPartialEq for CrateInfo
Auto Trait Implementations§
impl Freeze for CrateInfo
impl RefUnwindSafe for CrateInfo
impl Send for CrateInfo
impl Sync for CrateInfo
impl Unpin for CrateInfo
impl UnwindSafe for CrateInfo
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<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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more