Upgrade deps

This commit is contained in:
Igor Katson 2022-12-04 13:11:40 +00:00
parent 15ae48e5af
commit ae847ce99c
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
12 changed files with 493 additions and 2173 deletions

1823
crates/rqbit/Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -18,7 +18,7 @@ librqbit = {path="../librqbit", default-features=false}
dht = {path="../dht"}
tokio = {version = "1", features = ["macros", "rt-multi-thread"]}
anyhow = "1"
clap = "3.0.0-beta.5"
clap = {version = "4", features = ["derive"]}
log = "0.4"
pretty_env_logger = "0.4"
regex = "1"

View file

@ -1,7 +1,7 @@
use std::{net::SocketAddr, path::PathBuf, str::FromStr, sync::Arc, time::Duration};
use anyhow::Context;
use clap::{ArgEnum, Parser};
use clap::{Parser, ValueEnum};
use librqbit::{
http_api::{ApiAddTorrentResponse, HttpApi},
http_api_client,
@ -15,7 +15,7 @@ use librqbit::{
use log::{error, info, warn};
use size_format::SizeFormatterBinary as SF;
#[derive(Debug, Clone, Copy, ArgEnum)]
#[derive(Debug, Clone, Copy, ValueEnum)]
enum LogLevel {
Trace,
Debug,
@ -38,7 +38,7 @@ impl FromStr for ParsedDuration {
#[clap(version, author, about)]
struct Opts {
/// The loglevel
#[clap(arg_enum, short = 'v')]
#[clap(value_enum, short = 'v')]
log_level: Option<LogLevel>,
/// The interval to poll trackers, e.g. 30s.