Struct guppy::graph::BuildTarget
source · pub struct BuildTarget<'g> { /* private fields */ }
Expand description
A build target in a package.
A build target consists of one or more source files which can be compiled into a crate.
For more, see Cargo Targets in the Cargo reference.
Implementations§
source§impl<'g> BuildTarget<'g>
impl<'g> BuildTarget<'g>
sourcepub fn id(&self) -> BuildTargetId<'g>
pub fn id(&self) -> BuildTargetId<'g>
Returns the unique identifier for this build target.
sourcepub fn kind(&self) -> BuildTargetKind<'g>
pub fn kind(&self) -> BuildTargetKind<'g>
Returns the kind of this build target.
sourcepub fn required_features(&self) -> &'g [String]
pub fn required_features(&self) -> &'g [String]
Returns the features required for this build target.
This setting has no effect on the library target.
For more, see The required-features
field
in the Cargo reference.