pub struct TargetExplanation {
pub package: String,
pub target: String,
pub target_kind: String,
pub languages: Vec<String>,
pub deps: Vec<String>,
pub is_buildable: bool,
pub is_test: bool,
pub is_dev_only: bool,
}Expand description
Explain a target’s owning package, kind, language summary,
and dependency edges. cabin explain target <name> only
considers targets in the selected package closure.
Fields§
§package: String§target: String§target_kind: StringTarget kind as the stable string the rest of Cabin uses
(library, executable, test, …). Named target_kind
rather than kind to avoid colliding with the
Explanation tag field in the JSON shape.
languages: Vec<String>Names of source-language families the target carries
(c, cxx, rust). Sorted alphabetically.
deps: Vec<String>Manifest-declared deps for this target, in declaration order. The orchestration layer normalizes each entry’s rendering.
is_buildable: booltrue for every kind that produces a Ninja action
(library, executable, test, example). header_only
is the only buildable=false kind. is_test and
is_dev_only further classify whether the target reaches
the default cabin build selection.
is_test: booltrue for test only.
is_dev_only: booltrue for the dev-only kinds (test, example).
Trait Implementations§
Source§impl Clone for TargetExplanation
impl Clone for TargetExplanation
Source§fn clone(&self) -> TargetExplanation
fn clone(&self) -> TargetExplanation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more