pub struct Target {
pub name: TargetName,
pub kind: TargetKind,
pub sources: Vec<PathBuf>,
pub include_dirs: Vec<PathBuf>,
pub defines: Vec<String>,
pub deps: Vec<String>,
}Expand description
A buildable unit within a package.
Fields§
§name: TargetName§kind: TargetKind§sources: Vec<PathBuf>§include_dirs: Vec<PathBuf>§defines: Vec<String>§deps: Vec<String>Same-package target names or cross-package references. Cross-package
references take the form package (resolves to the package’s default
library target) or package:target (qualified). Resolution against a
concrete package graph lives in cabin-build, not here.
Stored as raw strings, not TargetName, because the qualified
package:target form contains a : that the path-safe target-name
grammar rejects. Validation happens at resolution time against the
already-validated package / target graph; dep strings never flow
directly into a filesystem path.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Target
impl<'de> Deserialize<'de> for Target
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 Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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,
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.