mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-05 11:40:04 +00:00
Update deps
This commit is contained in:
parent
8b4e77918c
commit
0f9b4de449
4 changed files with 341 additions and 472 deletions
|
@ -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");
|
||||
|
|
|
@ -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")?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue