Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps)!: upgrade deps, bump msrv to 1.66.1 #55

Merged
merged 2 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-caches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
toolchain: [1.65.0, stable, beta, nightly]
toolchain: [1.66.1, stable, beta, nightly]
runner: [ubuntu-latest, macos-latest]
target: [x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl, x86_64-apple-darwin]
async-feature: [async,async-rustls]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/checkout@v3

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.63.0
uses: dtolnay/rust-toolchain@1.66.1
with:
components: clippy

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/health.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
toolchain: [1.65.0, stable, beta, nightly]
toolchain: [1.66.1, stable, beta, nightly]
runner: [ubuntu-latest, macos-latest]
target: [x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl, x86_64-apple-darwin]
async-feature: [async,async-rustls]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
toolchain: [1.65.0, stable, beta, nightly]
toolchain: [1.66.1, stable, beta, nightly]
runner: [ubuntu-latest, macos-latest]
target: [x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl, x86_64-apple-darwin]
async-feature: [async,async-rustls]
Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "ddragon"
version = "0.7.4"
rust-version = "1.65"
rust-version = "1.66.1"
edition = "2021"
license = "MIT"
description = "Library for pulling data from ddragon, with caching support."
Expand All @@ -12,14 +12,14 @@ keywords = ["ddragon", "league-of-legends", "lol", "teamfight-tactics", "tft"]
categories = ["api-bindings"]

[dependencies]
cacache = { version = ">= 11.4.0, <= 11.5.2", optional = true }
http-cache-reqwest = { version = "0.8", optional = true }
cacache = { version = "11.6", optional = true }
http-cache-reqwest = { version = "0.11", optional = true }
image = { version = "0.24", default-features = false, features = ["png"], optional = true }
reqwest = { version = "0.11", default-features = false, features = ["json"], optional = true }
reqwest-middleware = { version = "0.2", optional = true }
serde = { version = "1.0", features = ["derive"] }
thiserror = { version = "1.0", optional = true }
ureq = { version = "2.6", features = ["json"], optional = true }
ureq = { version = "2.7", features = ["json"], optional = true }
url = { version = "2.3", optional = true }

[dev-dependencies]
Expand Down
6 changes: 3 additions & 3 deletions src/async_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#[cfg(feature = "image")]
use image::{load_from_memory, DynamicImage};

use http_cache_reqwest::{CACacheManager, Cache, CacheMode, HttpCache};
use http_cache_reqwest::{CACacheManager, Cache, CacheMode, HttpCache, HttpCacheOptions};
use reqwest::Client;
use reqwest_middleware::{ClientBuilder as MiddlewareClientBuilder, ClientWithMiddleware};
use serde::de::DeserializeOwned;
Expand Down Expand Up @@ -178,8 +178,8 @@ impl AsyncClientBuilder {
Some(cache_dir) => MiddlewareClientBuilder::new(plain_agent)
.with(Cache(HttpCache {
mode: CacheMode::ForceCache,
manager: CACacheManager { path: cache_dir },
options: None,
manager: CACacheManager { path: cache_dir.into() },
options: HttpCacheOptions::default(),
}))
.build(),
None => MiddlewareClientBuilder::new(plain_agent).build(),
Expand Down