fix: limit serde_with features

This commit is contained in:
ThetaDev 2023-05-09 17:35:21 +02:00
parent c688ff74e9
commit 6ad77d8daa
3 changed files with 8 additions and 3 deletions

View file

@ -43,7 +43,10 @@ reqwest = { version = "0.11.11", default-features = false, features = [
tokio = { version = "1.20.0", features = ["macros", "time"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.82"
serde_with = { version = "3.0.0", features = ["json"] }
serde_with = { version = "3.0.0", default-features = false, features = [
"macros",
"json",
] }
rand = "0.8.5"
time = { version = "0.3.15", features = [
"macros",

View file

@ -1,4 +1,4 @@
use std::path::PathBuf;
use std::{path::PathBuf, time::Duration};
use anyhow::{Context, Result};
use clap::{Parser, Subcommand, ValueEnum};
@ -300,6 +300,7 @@ async fn download_video(
.user_agent("Mozilla/5.0 (Windows NT 10.0; Win64; rv:107.0) Gecko/20100101 Firefox/107.0")
.gzip(true)
.brotli(true)
.timeout(Duration::from_secs(10))
.build()
.expect("unable to build the HTTP client");
@ -334,6 +335,7 @@ async fn download_videos(
.user_agent("Mozilla/5.0 (Windows NT 10.0; Win64; rv:107.0) Gecko/20100101 Firefox/107.0")
.gzip(true)
.brotli(true)
.timeout(Duration::from_secs(10))
.build()
.expect("unable to build the HTTP client");

View file

@ -11,7 +11,7 @@ tokio = { version = "1.20.0", features = ["macros", "rt-multi-thread"] }
futures = "0.3.21"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.82"
serde_with = "3.0.0"
serde_with = { version = "3.0.0", default-features = false, features = ["macros"] }
anyhow = "1.0"
log = "0.4.17"
env_logger = "0.10.0"