Skip to content

Commit

Permalink
Avoid enabling lib features when not depending on the lib
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 27, 2022
1 parent 280f22c commit 96764d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ impl Runner {
}
false
});
enables.insert(0, format!("{}/{}", crate_name, feature));
if has_lib_target {
enables.insert(0, format!("{}/{}", crate_name, feature));
}
}

let mut manifest = Manifest {
Expand Down

0 comments on commit 96764d0

Please sign in to comment.