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.
unsupported crate type
1 parent 59f50ab commit b12bd38Copy full SHA for b12bd38
src/cargo/core/compiler/build_context/target_info.rs
@@ -333,7 +333,7 @@ fn parse_crate_type(
333
) -> CargoResult<Option<(String, String)>> {
334
let not_supported = error.lines().any(|line| {
335
(line.contains("unsupported crate type") || line.contains("unknown crate type"))
336
- && line.contains(crate_type)
+ && line.contains(&format!("crate type `{}`", crate_type))
337
});
338
if not_supported {
339
return Ok(None);
0 commit comments