static, framework, or dylib (the default).",
"[KIND=]NAME",
),
- opt::multi_s(
- "",
- "crate-type",
- "Comma separated list of types of crates
- for the compiler to emit",
- "[bin|lib|rlib|dylib|cdylib|staticlib|proc-macro]",
- ),
+ make_crate_type_option(),
opt::opt_s(
"",
"crate-name",
)
}
+pub fn make_crate_type_option() -> RustcOptGroup {
+ opt::multi_s(
+ "",
+ "crate-type",
+ "Comma separated list of types of crates
+ for the compiler to emit",
+ "[bin|lib|rlib|dylib|cdylib|staticlib|proc-macro]",
+ )
+}
+
pub fn parse_crate_types_from_list(list_list: Vec<String>) -> Result<Vec<CrateType>, String> {
let mut crate_types: Vec<CrateType> = Vec::new();
for unparsed_crate_type in &list_list {