Update deps

This commit is contained in:
Félix Saparelli 2021-11-17 21:53:20 +13:00
parent 8b4e77918c
commit 0f9b4de449
4 changed files with 341 additions and 472 deletions

View file

@ -57,8 +57,8 @@ pub async fn fetch_crate_cratesio(name: &str, version_req: &str, temp_dir: &Path
// Fetch / update index
debug!("Updating crates.io index");
let index = crates_index::Index::new_cargo_default();
index.retrieve_or_update()?;
let mut index = crates_index::Index::new_cargo_default()?;
index.update()?;
// Lookup crate in index
debug!("Looking up crate information");

View file

@ -1,7 +1,7 @@
use std::path::{PathBuf};
use log::{debug, info, warn, error, LevelFilter};
use simplelog::{TermLogger, ConfigBuilder, TerminalMode};
use simplelog::{TermLogger, ConfigBuilder, TerminalMode, ColorChoice};
use structopt::StructOpt;
@ -78,7 +78,7 @@ async fn main() -> Result<(), anyhow::Error> {
log_config.add_filter_ignore("hyper".to_string());
log_config.add_filter_ignore("reqwest".to_string());
log_config.set_location_level(LevelFilter::Off);
TermLogger::init(opts.log_level, log_config.build(), TerminalMode::Mixed).unwrap();
TermLogger::init(opts.log_level, log_config.build(), TerminalMode::Mixed, ColorChoice::Auto).unwrap();
// Create a temporary directory for downloads etc.
let temp_dir = TempDir::new("cargo-binstall")?;