We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RUSTUP_DIST_*
1 parent 3bbbb9e commit 71ccd53Copy full SHA for 71ccd53
src/config.rs
@@ -226,13 +226,17 @@ impl Cfg {
226
.transpose()?;
227
228
let dist_root_server = match process().var("RUSTUP_DIST_SERVER") {
229
- Ok(ref s) if !s.is_empty() => s.clone(),
+ Ok(ref s) if !s.is_empty() => {
230
+ debug!("`RUSTUP_DIST_SERVER` has been set to `{s}`");
231
+ s.clone()
232
+ }
233
_ => {
234
// For backward compatibility
235
process()
236
.var("RUSTUP_DIST_ROOT")
237
.ok()
238
.and_then(utils::if_not_empty)
239
+ .inspect(|url| debug!("`RUSTUP_DIST_ROOT` has been set to `{url}`"))
240
.map_or(Cow::Borrowed(dist::DEFAULT_DIST_ROOT), Cow::Owned)
241
.as_ref()
242
.trim_end_matches("/dist")
0 commit comments