pub print_im_a_teapot: bool,
pub unstable_options: bool,
pub offline: bool,
+ pub no_index_update: bool,
}
impl CliUnstable {
"print-im-a-teapot" => self.print_im_a_teapot = parse_bool(v)?,
"unstable-options" => self.unstable_options = true,
"offline" => self.offline = true,
+ "no-index-update" => self.no_index_update = true,
_ => bail!("unknown `-Z` flag specified: {}", k),
}
if self.config.cli_unstable().offline {
return Ok(());
}
+ if self.config.cli_unstable().no_index_update {
+ return Ok(());
+ }
// Ensure that we'll actually be able to acquire an HTTP handle later on
// once we start trying to download crates. This will weed out any