Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Commit

Permalink
Update dependencies and version
Browse files Browse the repository at this point in the history
  • Loading branch information
bytedream committed Jan 2, 2024
1 parent 172e361 commit 283a380
Show file tree
Hide file tree
Showing 11 changed files with 273 additions and 203 deletions.
451 changes: 266 additions & 185 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "crunchy-cli"
authors = ["Crunchy Labs Maintainers"]
version = "3.1.1"
version = "3.2.0"
edition = "2021"
license = "MIT"

Expand All @@ -18,7 +18,7 @@ openssl = ["openssl-tls"]
openssl-static = ["openssl-tls-static"]

[dependencies]
tokio = { version = "1.34", features = ["macros", "rt-multi-thread", "time"], default-features = false }
tokio = { version = "1.35", features = ["macros", "rt-multi-thread", "time"], default-features = false }

native-tls-crate = { package = "native-tls", version = "0.2.11", optional = true }

Expand Down
9 changes: 4 additions & 5 deletions crunchy-cli-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "crunchy-cli-core"
authors = ["Crunchy Labs Maintainers"]
version = "3.1.1"
version = "3.2.0"
edition = "2021"
license = "MIT"

Expand All @@ -14,10 +14,9 @@ openssl-tls-static = ["reqwest/native-tls", "reqwest/native-tls-alpn", "reqwest/
[dependencies]
anyhow = "1.0"
async-speed-limit = "0.4"
async-trait = "0.1"
clap = { version = "4.4", features = ["derive", "string"] }
chrono = "0.4"
crunchyroll-rs = { version = "0.8.0", features = ["dash-stream", "experimental-stabilizations", "tower"] }
crunchyroll-rs = { version = "0.8.1", features = ["dash-stream", "experimental-stabilizations", "tower"] }
ctrlc = "3.4"
dialoguer = { version = "0.11", default-features = false }
dirs = "5.0"
Expand All @@ -36,8 +35,8 @@ serde_json = "1.0"
serde_plain = "1.0"
shlex = "1.2"
sys-locale = "0.3"
tempfile = "3.8"
tokio = { version = "1.34", features = ["io-util", "macros", "net", "rt-multi-thread", "time"] }
tempfile = "3.9"
tokio = { version = "1.35", features = ["io-util", "macros", "net", "rt-multi-thread", "time"] }
tokio-util = "0.7"
tower-service = "0.3"
rustls-native-certs = { version = "0.6", optional = true }
Expand Down
1 change: 0 additions & 1 deletion crunchy-cli-core/src/archive/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ pub struct Archive {
pub(crate) urls: Vec<String>,
}

#[async_trait::async_trait(?Send)]
impl Execute for Archive {
fn pre_check(&mut self) -> Result<()> {
if !has_ffmpeg() {
Expand Down
1 change: 0 additions & 1 deletion crunchy-cli-core/src/archive/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ impl ArchiveFilter {
}
}

#[async_trait::async_trait]
impl Filter for ArchiveFilter {
type T = Vec<SingleFormat>;
type Output = SingleFormatCollection;
Expand Down
1 change: 0 additions & 1 deletion crunchy-cli-core/src/download/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ pub struct Download {
pub(crate) urls: Vec<String>,
}

#[async_trait::async_trait(?Send)]
impl Execute for Download {
fn pre_check(&mut self) -> Result<()> {
if !has_ffmpeg() {
Expand Down
1 change: 0 additions & 1 deletion crunchy-cli-core/src/download/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ impl DownloadFilter {
}
}

#[async_trait::async_trait]
impl Filter for DownloadFilter {
type T = SingleFormat;
type Output = SingleFormatCollection;
Expand Down
3 changes: 1 addition & 2 deletions crunchy-cli-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ pub use download::Download;
pub use login::Login;
pub use search::Search;

#[async_trait::async_trait(?Send)]
trait Execute {
fn pre_check(&mut self) -> Result<()> {
Ok(())
}
async fn execute(mut self, ctx: Context) -> Result<()>;
async fn execute(self, ctx: Context) -> Result<()>;
}

#[derive(Debug, Parser)]
Expand Down
1 change: 0 additions & 1 deletion crunchy-cli-core/src/login/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub struct Login {
pub remove: bool,
}

#[async_trait::async_trait(?Send)]
impl Execute for Login {
async fn execute(self, ctx: Context) -> Result<()> {
if let Some(login_file_path) = session_file_path() {
Expand Down
1 change: 0 additions & 1 deletion crunchy-cli-core/src/search/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ pub struct Search {
input: String,
}

#[async_trait::async_trait(?Send)]
impl Execute for Search {
async fn execute(self, ctx: Context) -> Result<()> {
let input = if crunchyroll_rs::parse::parse_url(&self.input).is_some() {
Expand Down
3 changes: 0 additions & 3 deletions crunchy-cli-core/src/utils/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ use crunchyroll_rs::{
Concert, Episode, MediaCollection, Movie, MovieListing, MusicVideo, Season, Series,
};

// Check when https://github.com/dtolnay/async-trait/issues/224 is resolved and update async-trait
// to the new fixed version (as this causes some issues)
#[async_trait::async_trait]
pub trait Filter {
type T: Send + Sized;
type Output: Send + Sized;
Expand Down

0 comments on commit 283a380

Please sign in to comment.