rust-lang / rust-forge

Information useful to people contributing to Rust

Home Page:https://forge.rust-lang.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Standalone installation instructions doesn't have links for other rustup components

jyn514 opened this issue · comments

commented

Looks like it comes from https://raw.githubusercontent.com/rust-lang/rustup.rs/stable/ci/cloudfront-invalidation.txt, which is also missing that target.

No, this is due to another part of the source code.

for &channel_name in CHANNELS {
let channel_url = format!("{}{}.toml", CHANNEL_URL_PREFIX, channel_name);
let content = reqwest::blocking::get(&channel_url)?.text()?;
let rust = toml::from_str::<crate::channel::Channel>(&content)?
.pkg
.rust;
log::info!(
"Found {} targets for {} channel (v{})",
rust.target.len(),
channel_name,
rust.version
);
let vers = rust.version.split(' ').next().unwrap().to_string();
let platforms = rust
.target
.into_iter()
.filter_map(|(target, content)| {
if content.available {
Some(target)
} else {
None
}
})
.collect::<Vec<_>>();
if channel_name == "stable" {
blacksmith.stable_version = Some(vers.clone());
}
for platform in platforms {
let entry = blacksmith
.platforms
.entry(platform)
.or_insert_with(Platform::default);
match channel_name {
"stable" => entry.stable = Some(vers.clone()),
"beta" => entry.beta = true,
"nightly" => entry.nightly = true,
_ => unreachable!(),
}
}
}

This generates the list of platforms with the rust component available (due to the .pkg.rust), which only catches platforms with a full host compiler. We'd need to create a separate list with the links to the rust-std components.