diff --git a/Cargo.toml b/Cargo.toml index a3bae37..fc6f719 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crunchyroll-rs" -version = "0.7.0" +version = "0.8.0" authors = ["Crunchy Labs Maintainers"] edition = "2021" description = "Pure Rust implementation of the crunchyroll api." @@ -13,13 +13,13 @@ categories = ["api-bindings"] [features] default = ["hls-stream", "parse"] -# Add functionality to stream episodes / movies so you can process the unencrypted streaming data further, e.g. write it -# to a file and then play it. +# Add functionality to stream episodes / movies, so you can process the unencrypted streaming data further, e.g. write +# it to a file and then play it. hls-stream = ["dep:aes", "dep:cbc", "dep:m3u8-rs"] dash-stream = ["dep:dash-mpd"] # Add functionality to parse Crunchyroll urls. parse = ["dep:lazy_static", "dep:regex"] -# Add the ability to specify custom middleware- +# Add the ability to specify custom middleware. tower = ["dep:tower-service"] # Add various stabilizations as Crunchyroll delivers wrong api results in some cases. experimental-stabilizations = [] @@ -31,7 +31,7 @@ __test_strict = [] async-trait = "0.1" chrono = { version = "0.4", features = ["serde"] } futures-util = { version = "0.3", features = ["std"], default-features = false } -# patch version number is necessary for 'reqwest' and 'rustls' dependency to prevent incompatability errors +# 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.22", features = ["cookies", "json", "rustls-tls"], default-features = false } rustls = { version = "0.21.6", features = ["dangerous_configuration"] } @@ -39,10 +39,10 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" serde_urlencoded = "0.7" smart-default = "0.7" -tokio = { version = "1.34", features = ["sync"] } -webpki-roots = "0.25" +tokio = { version = "1.35", features = ["sync"] } +webpki-roots = "0.26" -crunchyroll-rs-internal = { version = "0.7.0", path = "internal" } +crunchyroll-rs-internal = { version = "0.8.0", path = "internal" } # Optional / required from features aes = { version = "0.8", optional = true } @@ -55,9 +55,9 @@ tower-service = { version = "0.3.2", optional = true } [dev-dependencies] anyhow = "1.0" -once_cell = "1.18" +once_cell = "1.19" rand = "0.8" -tokio = { version = "1.34", features = ["macros", "rt", "rt-multi-thread"] } +tokio = { version = "1.35", features = ["macros", "rt", "rt-multi-thread"] } [workspace] members = ["internal"] diff --git a/README.md b/README.md index d0aa577..24fc9fa 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ The documentation is available at [docs.rs](https://docs.rs/crunchyroll-rs/). You need this crate and [tokio](https://github.com/tokio-rs/tokio) as dependency in your Cargo.toml in order to start working: ```toml [dependencies] -crunchyroll-rs = "0.7" +crunchyroll-rs = "0.8" tokio = { version = "1", features = ["full"] } ``` diff --git a/internal/Cargo.toml b/internal/Cargo.toml index 0cd0f42..5a7be58 100644 --- a/internal/Cargo.toml +++ b/internal/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crunchyroll-rs-internal" -version = "0.7.0" +version = "0.8.0" authors = ["Crunchy Labs Maintainers"] edition = "2021" description = "Internal crate for crunchyroll-rs. Do not use." diff --git a/src/crunchyroll.rs b/src/crunchyroll.rs index ea92967..e928ed1 100644 --- a/src/crunchyroll.rs +++ b/src/crunchyroll.rs @@ -530,9 +530,9 @@ mod auth { let mut root_store = rustls::RootCertStore::empty(); root_store.add_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| { rustls::OwnedTrustAnchor::from_subject_spki_name_constraints( - ta.subject, - ta.spki, - ta.name_constraints, + ta.subject.to_vec(), + ta.subject_public_key_info.to_vec(), + ta.name_constraints.clone().map(|nc| nc.to_vec()), ) })); let tls_config = rustls::ClientConfig::builder()