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.
cargo dev ra-setup
1 parent 70c46de commit 6af9693Copy full SHA for 6af9693
clippy_dev/src/ra_setup.rs
@@ -68,10 +68,11 @@ fn inject_deps_into_manifest(
68
});
69
70
// format a new [dependencies]-block with the new deps we need to inject
71
- let mut all_deps = String::from("[dependencies]\n");
+ let mut all_deps = String::from("[target.'cfg(NOT_A_PLATFORM)'.dependencies]\n");
72
new_deps.for_each(|dep_line| {
73
all_deps.push_str(&dep_line);
74
75
+ all_deps.push_str("\n[dependencies]\n");
76
77
// replace "[dependencies]" with
78
// [dependencies]
0 commit comments