We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48913c3 commit e433cecCopy full SHA for e433cec
src/cargo/core/compiler/mod.rs
@@ -63,6 +63,9 @@ const RUSTDOC_CRATE_VERSION_FLAG: &str = "--crate-version";
63
pub enum LinkType {
64
Cdylib,
65
Bin,
66
+ Test,
67
+ Bench,
68
+ Example,
69
}
70
71
impl From<&super::Target> for Option<LinkType> {
@@ -71,6 +74,12 @@ impl From<&super::Target> for Option<LinkType> {
74
Some(LinkType::Cdylib)
72
75
} else if value.is_bin() {
73
76
Some(LinkType::Bin)
77
+ } else if value.is_test() {
78
+ Some(LinkType::Test)
79
+ } else if value.is_bench() {
80
+ Some(LinkType::Bench)
81
+ } else if value.is_exe_example() {
82
+ Some(LinkType::Example)
83
} else {
84
None
85
0 commit comments