Skip to content

Commit

Permalink
Update dependencies and version
Browse files Browse the repository at this point in the history
  • Loading branch information
bytedream committed Mar 9, 2024
1 parent b8bb3b4 commit e283cce
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crunchyroll-rs"
version = "0.8.3"
version = "0.8.4"
authors = ["Crunchy Labs Maintainers"]
edition = "2021"
description = "Pure Rust implementation of the crunchyroll api."
Expand Down Expand Up @@ -29,26 +29,26 @@ __test_strict = []

[dependencies]
async-trait = "0.1"
chrono = { version = "0.4", features = ["serde"] }
chrono = { version = ">=0.4.35", features = ["serde"] }
futures-util = { version = "0.3", features = ["std"], default-features = false }
jsonwebtoken = { version = "9.2", default-features = false }
# the patch version number is necessary for the 'reqwest' and 'rustls' dependencies to prevent incompatability errors
# (https://github.com/seanmonstar/reqwest/issues/1837)
reqwest = { version = "0.11.23", features = ["cookies", "json", "rustls-tls"], default-features = false }
reqwest = { version = "0.11.25", features = ["cookies", "json", "rustls-tls"], default-features = false }
rustls = { version = "0.21.6", features = ["dangerous_configuration"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_urlencoded = "0.7"
smart-default = "0.7"
tokio = { version = "1.35", features = ["sync"] }
tokio = { version = "1.36", features = ["sync"] }
webpki-roots = "0.26"

crunchyroll-rs-internal = { version = "0.8.3", path = "internal" }
crunchyroll-rs-internal = { version = "0.8.4", path = "internal" }

# Optional / required from features
aes = { version = "0.8", optional = true }
cbc = { version = "0.1", optional = true }
dash-mpd = { version = "0.14", default-features = false, optional = true }
dash-mpd = { version = "0.15", default-features = false, optional = true }
lazy_static = { version = "1.4", optional = true }
m3u8-rs = { version = "6.0", optional = true }
regex = { version = "1.10", default-features = false, features = ["std"], optional = true }
Expand All @@ -58,7 +58,7 @@ tower-service = { version = "0.3", optional = true }
anyhow = "1.0"
once_cell = "1.19"
rand = "0.8"
tokio = { version = "1.35", features = ["macros", "rt", "rt-multi-thread"] }
tokio = { version = "1.36", features = ["macros", "rt", "rt-multi-thread"] }

[workspace]
members = ["internal"]
Expand Down
2 changes: 1 addition & 1 deletion internal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crunchyroll-rs-internal"
version = "0.8.3"
version = "0.8.4"
authors = ["Crunchy Labs Maintainers"]
edition = "2021"
description = "Internal crate for crunchyroll-rs. Do not use."
Expand Down
2 changes: 1 addition & 1 deletion src/internal/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub(crate) fn deserialize_millis_to_duration<'de, D>(deserializer: D) -> Result<
where
D: Deserializer<'de>,
{
Ok(Duration::milliseconds(i64::deserialize(deserializer)?))
Ok(Duration::try_milliseconds(i64::deserialize(deserializer)?).unwrap())
}

pub(crate) fn serialize_duration_to_millis<S>(
Expand Down
2 changes: 1 addition & 1 deletion src/media/anime/episode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub struct Episode {
#[serde(alias = "duration_ms")]
#[serde(deserialize_with = "crate::internal::serde::deserialize_millis_to_duration")]
#[serde(serialize_with = "crate::internal::serde::serialize_duration_to_millis")]
#[default(Duration::milliseconds(0))]
#[default(Duration::try_milliseconds(0).unwrap())]
pub duration: Duration,

#[default(DateTime::<Utc>::from(std::time::SystemTime::UNIX_EPOCH))]
Expand Down
2 changes: 1 addition & 1 deletion src/media/anime/movie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub struct Movie {
#[serde(alias = "duration_ms")]
#[serde(deserialize_with = "crate::internal::serde::deserialize_millis_to_duration")]
#[serde(serialize_with = "crate::internal::serde::serialize_duration_to_millis")]
#[default(Duration::milliseconds(0))]
#[default(Duration::try_milliseconds(0).unwrap())]
pub duration: Duration,

pub images: ThumbnailImages,
Expand Down
4 changes: 2 additions & 2 deletions src/media/music/artist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ pub struct Artist {
#[serde(alias = "totalConcertDurationMs")]
#[serde(deserialize_with = "crate::internal::serde::deserialize_millis_to_duration")]
#[serde(serialize_with = "crate::internal::serde::serialize_duration_to_millis")]
#[default(Duration::milliseconds(0))]
#[default(Duration::try_milliseconds(0).unwrap())]
pub total_concert_duration: Duration,
#[serde(alias = "totalVideoDurationMs")]
#[serde(deserialize_with = "crate::internal::serde::deserialize_millis_to_duration")]
#[serde(serialize_with = "crate::internal::serde::serialize_duration_to_millis")]
#[default(Duration::milliseconds(0))]
#[default(Duration::try_milliseconds(0).unwrap())]
pub total_video_duration: Duration,

pub images: PosterImages,
Expand Down
2 changes: 1 addition & 1 deletion src/media/music/concert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub struct Concert {
#[serde(alias = "durationMs")]
#[serde(deserialize_with = "crate::internal::serde::deserialize_millis_to_duration")]
#[serde(serialize_with = "crate::internal::serde::serialize_duration_to_millis")]
#[default(Duration::milliseconds(0))]
#[default(Duration::try_milliseconds(0).unwrap())]
pub duration: Duration,
#[default(DateTime::<Utc>::from(std::time::SystemTime::UNIX_EPOCH))]
pub original_release: DateTime<Utc>,
Expand Down
2 changes: 1 addition & 1 deletion src/media/music/music_video.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub struct MusicVideo {
#[serde(alias = "durationMs")]
#[serde(deserialize_with = "crate::internal::serde::deserialize_millis_to_duration")]
#[serde(serialize_with = "crate::internal::serde::serialize_duration_to_millis")]
#[default(Duration::milliseconds(0))]
#[default(Duration::try_milliseconds(0).unwrap())]
pub duration: Duration,

#[default(DateTime::<Utc>::from(std::time::SystemTime::UNIX_EPOCH))]
Expand Down

0 comments on commit e283cce

Please sign in to comment.