Skip to content

Commit b8e50bb

Browse files
KobzolMark-Simulacrum
authored andcommitted
Use .tar.xz instead of .tar.gz for archive links
1 parent 9d6e3dc commit b8e50bb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

blacksmith/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ impl Blacksmith {
174174
} else if name.contains("darwin") {
175175
"pkg"
176176
} else {
177-
"tar.gz"
177+
"tar.xz"
178178
};
179179

180180
let stable_links = platform
@@ -224,15 +224,15 @@ impl Blacksmith {
224224
buffer,
225225
"stable ({}) | {}",
226226
stable_version,
227-
generate_standalone_links("rustc", stable_version, "src", "tar.gz")
227+
generate_standalone_links("rustc", stable_version, "src", "tar.xz")
228228
)
229229
.unwrap();
230230
} else {
231231
writeln!(
232232
buffer,
233233
"{} | {}",
234234
channel,
235-
generate_standalone_links("rustc", &channel, "src", "tar.gz")
235+
generate_standalone_links("rustc", &channel, "src", "tar.xz")
236236
)
237237
.unwrap();
238238
}

src/infra/other-installation-methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ what they each specifically generate.
8181

8282
The official Rust standalone installers contain a single release of Rust, and
8383
are suitable for offline installation. They come in three forms: tarballs
84-
(extension `.tar.gz`), that work in any Unix-like environment, Windows
84+
(extension `.tar.xz`), that work in any Unix-like environment, Windows
8585
installers (`.msi`), and Mac installers (`.pkg`). These installers come with
8686
`rustc`, `cargo`, `rustdoc`, the standard library, and the standard
8787
documentation, but do not provide access to additional cross-targets like

0 commit comments

Comments
 (0)