Update dependencies

This commit is contained in:
FliegendeWurst 2023-07-24 08:50:34 +02:00
parent 19202327b9
commit 2d59d2280e
4 changed files with 801 additions and 610 deletions

1389
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -12,28 +12,28 @@ reqwest = { version = "0.11.0", default-features = false, features = ["cookies",
tokio = { version = "1.24.2", features = ["fs", "macros", "net", "rt-multi-thread", "process"] } tokio = { version = "1.24.2", features = ["fs", "macros", "net", "rt-multi-thread", "process"] }
tokio-util = { version = "0.7.0", features = ["io"] } tokio-util = { version = "0.7.0", features = ["io"] }
serde_json = "1.0.51" serde_json = "1.0.51"
scraper = "0.13.0" scraper = "0.17"
url = "2.1.1" url = "2.1.1"
futures = "0.3.8" futures = "0.3.8"
futures-util = "0.3.8" futures-util = "0.3.8"
futures-channel = "0.3.8" futures-channel = "0.3.8"
regex = "1.3.7" regex = "1.3.7"
structopt = "0.3.13" structopt = "0.3.13"
rpassword = "6.0.1" rpassword = "7"
rprompt = "1.0.5" rprompt = "2"
ignore = "0.4.14" ignore = "0.4.14"
anyhow = "1.0.28" anyhow = "1.0.28"
colored = "2.0.0" colored = "2.0.0"
keyring = { git = "https://github.com/FliegendeWurst/keyring-rs" } keyring = { git = "https://github.com/FliegendeWurst/keyring-rs" }
cfg-if = "1.0.0" cfg-if = "1.0.0"
indicatif = "0.16.0" indicatif = "0.17"
once_cell = "1.7.2" once_cell = "1.7.2"
atty = "0.2.14" atty = "0.2.14"
h2 = "0.3.3" h2 = "0.3.3"
cookie_store = "0.16.1" cookie_store = "0.20"
reqwest_cookie_store = "0.3.0" reqwest_cookie_store = "0.6"
bytes = "1.0.1" bytes = "1.0.1"
toml = "0.5.8" toml = "0.7"
tempfile = "3.2.0" tempfile = "3.2.0"
ego-tree = "0.6.2" ego-tree = "0.6.2"
async-recursion = "1.0.0" async-recursion = "1.0.0"

View File

@ -157,7 +157,7 @@ pub fn ask_user_pass(opt: &Opt) -> Result<(String, String)> {
let user = if let Some(username) = opt.username.as_ref() { let user = if let Some(username) = opt.username.as_ref() {
username.clone() username.clone()
} else { } else {
rprompt::prompt_reply_stdout("Username: ").context("username prompt")? rprompt::prompt_reply("Username: ").context("username prompt")?
}; };
let (pass, should_store); let (pass, should_store);
let keyring = Lazy::new(|| keyring::Entry::new(env!("CARGO_PKG_NAME"), &user)); let keyring = Lazy::new(|| keyring::Entry::new(env!("CARGO_PKG_NAME"), &user));

View File

@ -151,8 +151,8 @@ async fn real_main(mut opt: Opt) -> Result<()> {
let mut rx = queue::set_parallel_jobs(ilias.opt.jobs); let mut rx = queue::set_parallel_jobs(ilias.opt.jobs);
PROGRESS_BAR_ENABLED.store(atty::is(atty::Stream::Stdout), Ordering::SeqCst); PROGRESS_BAR_ENABLED.store(atty::is(atty::Stream::Stdout), Ordering::SeqCst);
if PROGRESS_BAR_ENABLED.load(Ordering::SeqCst) { if PROGRESS_BAR_ENABLED.load(Ordering::SeqCst) {
PROGRESS_BAR.set_draw_target(ProgressDrawTarget::stderr_nohz()); PROGRESS_BAR.set_draw_target(ProgressDrawTarget::stderr());
PROGRESS_BAR.set_style(ProgressStyle::default_bar().template("[{pos}/{len}+] {wide_msg}")); PROGRESS_BAR.set_style(ProgressStyle::default_bar().template("[{pos}/{len}+] {wide_msg}")?);
PROGRESS_BAR.set_message("initializing.."); PROGRESS_BAR.set_message("initializing..");
} }
@ -195,7 +195,7 @@ async fn real_main(mut opt: Opt) -> Result<()> {
} }
} }
if PROGRESS_BAR_ENABLED.load(Ordering::SeqCst) { if PROGRESS_BAR_ENABLED.load(Ordering::SeqCst) {
PROGRESS_BAR.set_style(ProgressStyle::default_bar().template("[{pos}/{len}] {wide_msg}")); PROGRESS_BAR.set_style(ProgressStyle::default_bar().template("[{pos}/{len}] {wide_msg}")?);
PROGRESS_BAR.finish_with_message("done"); PROGRESS_BAR.finish_with_message("done");
} }
Ok(()) Ok(())