Lines Matching refs:TargetKind
86 pub kind: Vec<TargetKind>,
94 pub enum TargetKind { enum
137 TargetKind::Bin, in parse_cargo_metadata()
138 TargetKind::Cdylib, in parse_cargo_metadata()
139 TargetKind::Lib, in parse_cargo_metadata()
140 TargetKind::ProcMacro, in parse_cargo_metadata()
141 TargetKind::Rlib, in parse_cargo_metadata()
142 TargetKind::Staticlib, in parse_cargo_metadata()
143 TargetKind::Test, in parse_cargo_metadata()
157 let target_triple = if target_kinds == [TargetKind::ProcMacro] { in parse_cargo_metadata()
164 if target_kinds != [TargetKind::Test] { in parse_cargo_metadata()
221 target_kinds: &[TargetKind], in get_externs() argument
242 if matches!(target_kinds, [TargetKind::Bin] | [TargetKind::Test]) { in get_externs()
244 if target.kind.contains(&TargetKind::Lib) { in get_externs()
265 target.kind.contains(&TargetKind::Lib) || target.kind.contains(&TargetKind::ProcMacro) in make_extern()
275 if package.targets.iter().any(|target| target.kind.contains(&TargetKind::ProcMacro)) { in make_extern()
489 kind: vec![TargetKind::Lib], in get_externs_cfg()
498 kind: vec![TargetKind::Lib], in get_externs_cfg()
507 kind: vec![TargetKind::Lib], in get_externs_cfg()
560 kind: vec![TargetKind::Lib], in get_externs_extra_cfg()
569 kind: vec![TargetKind::Lib], in get_externs_extra_cfg()
620 kind: vec![TargetKind::Lib], in get_externs_rename()
629 kind: vec![TargetKind::Lib], in get_externs_rename()