Commit 9a131b5
committed
install fails earlier when no binaries can be found
this automatically filters out the lib targets in `cargo install`
when no specific targets are provided by the user, so they won't get
accidentally built.
now when you try to install a crate with no satisfied bin targets, cargo
will skip the meat of the compile phase and give the same error message
it currently gives when it finds no bin targets at all.
a new flag called `warn_unmatched` was also added to `CompileFilter::Only`
that can suppress the warning about unmatched target filters.
fixes #89701 parent 77a0379 commit 9a131b5
File tree
4 files changed
+23
-5
lines changed- src
- bin/cargo/commands
- cargo/ops
- tests/testsuite
4 files changed
+23
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
140 | 152 | | |
141 | 153 | | |
142 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
| |||
714 | 715 | | |
715 | 716 | | |
716 | 717 | | |
| 718 | + | |
717 | 719 | | |
718 | 720 | | |
719 | 721 | | |
| |||
730 | 732 | | |
731 | 733 | | |
732 | 734 | | |
| 735 | + | |
733 | 736 | | |
734 | 737 | | |
735 | 738 | | |
| |||
1003 | 1006 | | |
1004 | 1007 | | |
1005 | 1008 | | |
| 1009 | + | |
1006 | 1010 | | |
1007 | 1011 | | |
1008 | 1012 | | |
| |||
1158 | 1162 | | |
1159 | 1163 | | |
1160 | 1164 | | |
1161 | | - | |
| 1165 | + | |
1162 | 1166 | | |
1163 | 1167 | | |
1164 | 1168 | | |
1165 | 1169 | | |
| 1170 | + | |
1166 | 1171 | | |
1167 | 1172 | | |
1168 | | - | |
| 1173 | + | |
1169 | 1174 | | |
1170 | 1175 | | |
1171 | 1176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | | - | |
590 | 589 | | |
591 | | - | |
| 590 | + | |
| 591 | + | |
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
| |||
0 commit comments