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 Jul 26, 2023
1 parent 53e6033 commit c5629ba
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crunchyroll-rs"
version = "0.5.0"
version = "0.5.1"
authors = ["Crunchy Labs Maintainers"]
edition = "2021"
description = "Pure Rust implementation of the crunchyroll api."
Expand Down Expand Up @@ -39,9 +39,9 @@ serde_json = "1.0"
serde_urlencoded = "0.7"
smart-default = "0.7"
tokio = { version = "1.29", features = ["sync"] }
webpki-roots = "0.24"
webpki-roots = "0.25"

crunchyroll-rs-internal = { version = "0.5.0", path = "internal" }
crunchyroll-rs-internal = { version = "0.5.1", path = "internal" }

# Optional / required from features
aes = { version = "0.8", optional = true }
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.5.0"
version = "0.5.1"
authors = ["Crunchy Labs Maintainers"]
edition = "2021"
description = "Internal crate for crunchyroll-rs. Do not use."
Expand Down
16 changes: 7 additions & 9 deletions src/crunchyroll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,15 +462,13 @@ mod auth {
/// [`CrunchyrollBuilder::try_bypass`] to set your built client.
pub fn predefined_client_builder() -> ClientBuilder {
let mut root_store = rustls::RootCertStore::empty();
root_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(
|ta| {
rustls::OwnedTrustAnchor::from_subject_spki_name_constraints(
ta.subject,
ta.spki,
ta.name_constraints,
)
},
));
root_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| {
rustls::OwnedTrustAnchor::from_subject_spki_name_constraints(
ta.subject,
ta.spki,
ta.name_constraints,
)
}));
let tls_config = rustls::ClientConfig::builder()
.with_cipher_suites(rustls::DEFAULT_CIPHER_SUITES)
.with_kx_groups(&[&rustls::kx_group::X25519])
Expand Down
2 changes: 1 addition & 1 deletion src/media/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn deserialize_streams<'de, D: Deserializer<'de>>(
for (key, value) in as_map {
// always empty
if key == "urls" {
continue
continue;
}

for (mut locale, data) in value {
Expand Down

0 comments on commit c5629ba

Please sign in to comment.