Prevent compile parts of rustc when using cargo dev ra-setup

This commit is contained in:
Dmitry Murzin 2020-08-09 22:21:09 +05:00
parent 70c46de012
commit 6af969379e
No known key found for this signature in database
GPG key ID: 3DA7EB8E3131A454

View file

@ -68,10 +68,11 @@ fn inject_deps_into_manifest(
});
// format a new [dependencies]-block with the new deps we need to inject
let mut all_deps = String::from("[dependencies]\n");
let mut all_deps = String::from("[target.'cfg(NOT_A_PLATFORM)'.dependencies]\n");
new_deps.for_each(|dep_line| {
all_deps.push_str(&dep_line);
});
all_deps.push_str("\n[dependencies]\n");
// replace "[dependencies]" with
// [dependencies]