Upgrade deps
This commit is contained in:
parent
15ae48e5af
commit
ae847ce99c
12 changed files with 493 additions and 2173 deletions
1823
crates/rqbit/Cargo.lock
generated
1823
crates/rqbit/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue