Skip to content

Commit 71ff3c2

Browse files
committed
Enable Cargo resolver v2
This will be the default in 2021. When it switches, we get spurious rebuilds. Might as well use it everywhere.
1 parent bf011b3 commit 71ff3c2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

compiler/base/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "playground"
33
version = "0.0.1"
44
authors = ["The Rust Playground"]
5+
resolver = "2"
56
[profile.dev]
67
codegen-units = 1
78
incremental = false

top-crates/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ struct TomlPackage {
5858
name: String,
5959
version: String,
6060
authors: Vec<String>,
61+
resolver: String,
6162
}
6263

6364
/// A mapping of a crates name to its identifier used in source code
@@ -447,6 +448,7 @@ fn main() {
447448
name: "playground".to_owned(),
448449
version: "0.0.1".to_owned(),
449450
authors: vec!["The Rust Playground".to_owned()],
451+
resolver: "2".to_owned(),
450452
},
451453
profile: Profiles {
452454
dev: Profile {

0 commit comments

Comments
 (0)