Skip to content

Commit 70170d1

Browse files
committed
Revert "Make the default behaviour of cargo build match the documentation"
This reverts commit 3fc0715.
1 parent 31f6f84 commit 70170d1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/cargo/ops/cargo_compile.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -422,19 +422,15 @@ impl<'a> CompileFilter<'a> {
422422

423423
pub fn need_dev_deps(&self) -> bool {
424424
match *self {
425-
CompileFilter::Default { .. } => false,
425+
CompileFilter::Default { .. } => true,
426426
CompileFilter::Only { examples, tests, benches, .. } =>
427427
examples.is_specific() || tests.is_specific() || benches.is_specific()
428428
}
429429
}
430430

431431
pub fn matches(&self, target: &Target) -> bool {
432432
match *self {
433-
CompileFilter::Default { .. } => match *target.kind() {
434-
TargetKind::Bin => true,
435-
TargetKind::Lib(..) => true,
436-
_ => false,
437-
},
433+
CompileFilter::Default { .. } => true,
438434
CompileFilter::Only { lib, bins, examples, tests, benches, .. } => {
439435
let rule = match *target.kind() {
440436
TargetKind::Bin => bins,

0 commit comments

Comments
 (0)