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 Dec 10, 2023
1 parent e4ae6ca commit 3de4971
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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."
Expand All @@ -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 = []
Expand All @@ -31,18 +31,18 @@ __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"] }
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 }
Expand All @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
```

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.7.0"
version = "0.8.0"
authors = ["Crunchy Labs Maintainers"]
edition = "2021"
description = "Internal crate for crunchyroll-rs. Do not use."
Expand Down
6 changes: 3 additions & 3 deletions src/crunchyroll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3de4971

Please sign in to comment.