Repository: mbrubeck/agate (language: rust)

Issue:
chore(deps): bump rustls from 0.20.8 to 0.21.0
Bumps [rustls](https://github.com/rustls/rustls) from 0.20.8 to 0.21.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/rustls/rustls/blob/main/RELEASE_NOTES.md">rustls's changelog</a>.</em></p>
<blockquote>
<h2>Release history:</h2>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/rustls/rustls/commit/45197b807cf0699c842fcb85eb8eca555c74cc04"><code>45197b8</code></a> Bump version number to 0.21.0</li>
<li><a href="https://github.com/rustls/rustls/commit/785675b8c7d32ad1febd4011f500c3d18a8881fe"><code>785675b</code></a> Update note regarding stability</li>
<li><a href="https://github.com/rustls/rustls/commit/d7be326b76077e05749391c309cd960115db5edc"><code>d7be326</code></a> Update changelog in preparation for 0.21.0</li>
<li><a href="https://github.com/rustls/rustls/commit/8a2a87b240589fa9097682d4d0561aae2fb8f085"><code>8a2a87b</code></a> client: use type + builder pattern for resumption config API</li>
<li><a href="https://github.com/rustls/rustls/commit/2ac21fb6841d0a96e3e155833fa381dde720a8bf"><code>2ac21fb</code></a> bench: remove Resumption to ResumptionParam</li>
<li><a href="https://github.com/rustls/rustls/commit/39402e1564988254f78014239f99993b83da681e"><code>39402e1</code></a> client: replace enable_tickets option with tls12_resumption</li>
<li><a href="https://github.com/rustls/rustls/commit/326122c9ffc164a1a8e9f2d8a9a070e6d19208f9"><code>326122c</code></a> client: format comment to make it more readable</li>
<li><a href="https://github.com/rustls/rustls/commit/759ecfa5dd2322b73f91dc725a2ed19d61df80da"><code>759ecfa</code></a> client: avoid passing duplicate state to prepare_resumption()</li>
<li><a href="https://github.com/rustls/rustls/commit/0b748d4b9dc440f261af1b302d521294587b9aa9"><code>0b748d4</code></a> client: encapsulate client hello input state</li>
<li><a href="https://github.com/rustls/rustls/commit/d83a6e7ea1940c6837e9ce5cb09253b04fa4a198"><code>d83a6e7</code></a> Rename SessionID to SessionId</li>
<li>Additional commits viewable in <a href="https://github.com/rustls/rustls/compare/v/0.20.8...v/0.21.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=rustls&package-manager=cargo&previous-version=0.20.8&new-version=0.21.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>


Discussion / hints:

Fix patch:
diff --git a/Cargo.lock b/Cargo.lock
index fca965c..f7f71de 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -18,11 +18,10 @@ dependencies = [
  "once_cell",
  "percent-encoding",
  "rcgen",
- "rustls 0.20.8",
+ "rustls 0.21.0",
  "tokio",
- "tokio-rustls 0.23.4",
+ "tokio-rustls 0.24.0",
  "url",
- "webpki 0.22.0",
 ]
 
 [[package]]
@@ -155,7 +154,7 @@ dependencies = [
  "tokio",
  "tokio-rustls 0.22.0",
  "url",
- "webpki 0.21.4",
+ "webpki",
  "webpki-roots",
  "x509-signature",
 ]
@@ -365,19 +364,29 @@ dependencies = [
  "log",
  "ring",
  "sct 0.6.1",
- "webpki 0.21.4",
+ "webpki",
 ]
 
 [[package]]
 name = "rustls"
-version = "0.20.8"
+version = "0.21.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fff78fc74d175294f4e83b28343315ffcfb114b156f0185e9741cb5570f50e2f"
+checksum = "07180898a28ed6a7f7ba2311594308f595e3dd2e3c3812fa0a80a47b45f17e5d"
 dependencies = [
  "log",
  "ring",
+ "rustls-webpki",
  "sct 0.7.0",
- "webpki 0.22.0",
+]
+
+[[package]]
+name = "rustls-webpki"
+version = "0.100.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d6207cd5ed3d8dca7816f8f3725513a34609c0c765bf652b8c3cb4cfd87db46b"
+dependencies = [
+ "ring",
+ "untrusted",
 ]
 
 [[package]]
@@ -534,18 +543,17 @@ checksum = "bc6844de72e57df1980054b38be3a9f4702aba4858be64dd700181a8a6d0e1b6"
 dependencies = [
  "rustls 0.19.1",
  "tokio",
- "webpki 0.21.4",
+ "webpki",
 ]
 
 [[package]]
 name = "tokio-rustls"
-version = "0.23.4"
+version = "0.24.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c43ee83903113e03984cb9e5cebe6c04a5116269e900e3ddba8f068a62adda59"
+checksum = "e0d409377ff5b1e3ca6437aa86c1eb7d40c134bfec254e44c830defa92669db5"
 dependencies = [
- "rustls 0.20.8",
+ "rustls 0.21.0",
  "tokio",
- "webpki 0.22.0",
 ]
 
 [[package]]
@@ -687,23 +695,13 @@ dependencies = [
  "untrusted",
 ]
 
-[[package]]
-name = "webpki"
-version = "0.22.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f095d78192e208183081cc07bc5515ef55216397af48b873e5edcd72637fa1bd"
-dependencies = [
- "ring",
- "untrusted",
-]
-
 [[package]]
 name = "webpki-roots"
 version = "0.21.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "aabe153544e473b775453675851ecc86863d2a81d786d741f6b76778f2a48940"
 dependencies = [
- "webpki 0.21.4",
+ "webpki",
 ]
 
 [[package]]
diff --git a/Cargo.toml b/Cargo.toml
index 146e68c..df504ee 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -22,11 +22,10 @@ mime_guess = "2.0"
 once_cell = "1.17"
 percent-encoding = "2.2"
 rcgen = { version = "0.10.0" }
-rustls = "0.20.8"
-tokio-rustls = "0.23.4"
+rustls = "0.21.0"
+tokio-rustls = "0.24.0"
 tokio = { version = "1.27", features = ["fs", "io-util", "net", "rt-multi-thread", "sync"] }
 url = "2.3.1"
-webpki = "0.22.0"
 
 [dev-dependencies]
 anyhow = "1.0"


Test patch:
diff --git a/tests/tests.rs b/tests/tests.rs
index 045f225..de3ca9e 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -539,7 +539,7 @@ fn explicit_tls_version() {
             .unwrap()
             .downcast::<Error>()
             .unwrap(),
-        Error::AlertReceived(rustls::internal::msgs::enums::AlertDescription::ProtocolVersion)
+        Error::AlertReceived(rustls::AlertDescription::ProtocolVersion)
     )
 }