Skip to content

Commit 9c40dcc

Browse files
authored
Update sparse registry hash for new toolchain (#2248)
When we bumped the toolchain, this changed as well. Keeping the hash correct reduces the length of panic strings.
1 parent e744ccf commit 9c40dcc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

build/xtask/src/dist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ impl PackageConfig {
197197
let cargo_sparse_registry = cargo_home
198198
.join("registry")
199199
.join("src")
200-
.join("index.crates.io-6f17d22bba15001f");
200+
.join("index.crates.io-1949cf8c6b5b557f");
201201
remap_paths.insert(cargo_sparse_registry, "/crates.io");
202202
}
203203

rust-toolchain.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
[toolchain]
2+
# If you change the toolchain version, check that the cargo registry hash has
3+
# not changed (look at `remap_paths` in `xtask/src/dist.rs`). This remapping
4+
# strips local paths from panic messages, because they're bad for both
5+
# reproducibility and binary size.
26
channel = "nightly-2025-07-20"
37
targets = [ "thumbv6m-none-eabi", "thumbv7em-none-eabihf", "thumbv8m.main-none-eabihf" ]
48
profile = "minimal"

0 commit comments

Comments
 (0)