pub struct TargetDep {
pub reference: String,
pub public: bool,
}Expand description
One declared entry of a target’s deps array.
The manifest accepts two spellings: a bare reference string
("foo", "pkg:target"), which declares a private edge, and
the table form ({ name = "foo", public = true }), which
additionally sets the per-edge visibility. Both forms keep the
reference exactly as written; alias resolution (foo ->
foo:foo) happens in cabin-build against a concrete package
graph, and the resolved edge carries this declaration’s
visibility.
Fields§
§reference: StringRaw target reference exactly as written in the manifest -
a bare name or a qualified package:target. See
Target::deps for why this is a String, not a
TargetName.
public: boolWhether this edge re-exports the dependency’s public headers to the target’s own consumers. Declarative only today: recorded on the resolved dependency graph, consumed by nothing yet.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TargetDep
impl<'de> Deserialize<'de> for TargetDep
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 TargetDep
impl StructuralPartialEq for TargetDep
Auto Trait Implementations§
impl Freeze for TargetDep
impl RefUnwindSafe for TargetDep
impl Send for TargetDep
impl Sync for TargetDep
impl Unpin for TargetDep
impl UnsafeUnpin for TargetDep
impl UnwindSafe for TargetDep
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.