Skip to main content

Module download

Module download 

Source

Re-exportsΒ§

use std::collections::HashMap; πŸ”’
use std::env; πŸ”’
use std::env; πŸ”’
use std::ffi::OsString; πŸ”’
use std::fs; πŸ”’
use std::fs::File; πŸ”’
use std::io::BufRead; πŸ”’
use std::io::BufReader; πŸ”’
use std::io::BufWriter; πŸ”’
use std::io::ErrorKind; πŸ”’
use std::io::Write; πŸ”’
use std::path::Path; πŸ”’
use std::path::PathBuf; πŸ”’
use std::sync::Arc; πŸ”’
use std::sync::Mutex; πŸ”’
use std::sync::OnceLock; πŸ”’
use build_helper::ci::CiEnv; πŸ”’
use build_helper::git::PathFreshness; πŸ”’
use build_helper::stage0_parser::VersionMetadata; πŸ”’
use xz2::bufread::XzDecoder; πŸ”’
use crate::core::build_steps::llvm::detect_llvm_freshness; πŸ”’
use crate::core::config::toml::llvm::check_incompatible_options_for_ci_llvm; πŸ”’
use crate::core::config::BUILDER_CONFIG_FILENAME; πŸ”’
use crate::core::config::Config; πŸ”’
use crate::core::config::TargetSelection; πŸ”’
use crate::utils::build_stamp::BuildStamp; πŸ”’
use crate::utils::exec::ExecutionContext; πŸ”’
use crate::utils::exec::command; πŸ”’
use crate::utils::helpers; πŸ”’
use crate::utils::helpers::exe; πŸ”’
use crate::utils::helpers::hex_encode; πŸ”’
use crate::utils::helpers::move_file; πŸ”’
use crate::utils::helpers::t; πŸ”’

StructsΒ§

DownloadContext πŸ”’
Only should be used for pre config initialization downloads.

EnumsΒ§

DownloadSource πŸ”’

StaticsΒ§

SHOULD_FIX_BINS_AND_DYLIBS πŸ”’

FunctionsΒ§

curl_version πŸ”’
download_beta_toolchain πŸ”’
download_component πŸ”’
download_file πŸ”’
download_http_with_retries πŸ”’
download_toolchain πŸ”’
extract_curl_version πŸ”’
fix_bin_or_dylib πŸ”’
is_download_ci_available πŸ”’
Checks whether the CI rustc is available for the given target triple.
maybe_download_rustfmt πŸ”’
NOTE: rustfmt is a completely different toolchain than the bootstrap compiler, so it can’t reuse target directories or artifacts
path_is_dylib πŸ”’
recorded_entries πŸ”’
remove πŸ”’
should_fix_bins_and_dylibs πŸ”’
tempdir πŸ”’
Create a temporary directory in out and return its path.
unpack πŸ”’
verify πŸ”’