[PR #1007] [MERGED] Bump tokio from 0.2.9 to 0.2.11 #1859

Closed
opened 2026-03-16 02:36:40 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hickory-dns/hickory-dns/pull/1007
Author: @dependabot-preview[bot]
Created: 2/1/2020
Status: Merged
Merged: 2/15/2020
Merged by: @bluejekyll

Base: masterHead: dependabot/cargo/tokio-0.2.11


📝 Commits (3)

  • a2d436a Bump tokio from 0.2.9 to 0.2.11
  • 6d887c5 Fix bad 0.2.111 from dependabot for tokio dependency
  • eea38c9 fix bad tokio 0.2.111 dependendabot version for tokio

📊 Changes

11 files changed (+28 additions, -28 deletions)

View changed files

📝 Cargo.lock (+17 -17)
📝 bin/Cargo.toml (+1 -1)
📝 crates/client/Cargo.toml (+1 -1)
📝 crates/https/Cargo.toml (+1 -1)
📝 crates/native-tls/Cargo.toml (+1 -1)
📝 crates/openssl/Cargo.toml (+2 -2)
📝 crates/proto/Cargo.toml (+1 -1)
📝 crates/resolver/Cargo.toml (+1 -1)
📝 crates/rustls/Cargo.toml (+1 -1)
📝 crates/server/Cargo.toml (+1 -1)
📝 tests/integration-tests/Cargo.toml (+1 -1)

📄 Description

Bumps tokio from 0.2.9 to 0.2.11.

Release notes

Sourced from tokio's releases.

Tokio v0.2.11

Introduces select!, join!, and try_join! macros for waiting on multiple async operations concurrently from the same task. These macros are implemented primarily as declarative macros, which works around the recursion limit issue. The select! macro works with any type that implements Future and does not require special FusedFuture traits.

Fixes

  • docs: misc fixes and tweaks (#2155, #2103, #2027, #2167, #2175).
  • macros: handle generics in #[tokio::main] method (#2177).
  • sync: broadcast potential lost notifications (#2135).
  • rt: improve "no runtime" panic messages (#2145).

Added

  • optional support for using parking_lot internally (#2164).
  • fs: fs::copy, an async version of std::fs::copy (#2079).
  • macros: select! waits for the first branch to complete (#2152).
  • macros: join! waits for all branches to complete (#2158).
  • macros: try_join! waits for all branches to complete or the first error (#2169).
  • macros: pin! pins a value to the stack (#2163).
  • net: ReadHalf::poll() and ReadHalf::poll_peak (#2151)
  • stream: StreamExt::timeout() sets a per-item max duration (#2149).
  • stream: StreamExt::fold() applies a function, producing a single value. (#2122).
  • sync: impl Eq, PartialEq for oneshot::RecvError (#2168).
  • task: methods for inspecting the JoinError cause (#2051).

Tokio v0.2.10

Introduces a task-local storage solution that works with Rust's "task" concept and supports multiplexing futures on the same runtime task (#2126). A number of other incremental improvements are included.

This release includes a few fixes, including fixing a scenario in which undefined behavior could be introduced when the user provided a buggy AsyncRead implementation.

Fixes

  • #[tokio::main] when rt-core feature flag is not enabled (#2139).
  • remove AsyncBufRead from BufStream impl block (#2108).
  • potential undefined behavior when implementing AsyncRead incorrectly (#2030).

Added

  • BufStream::with_capacity (#2125).
  • impl From and Default for RwLock (#2089).
  • io::ReadHalf::is_pair_of checks if provided WriteHalf is for the same underlying object (#1762, #2144).
  • runtime::Handle::try_current() returns a handle to the current runtime (#2118).
  • stream::empty() returns an immediately ready empty stream (#2092).
  • stream::once(val) returns a stream that yields a single value: val (#2094).
  • stream::pending() returns a stream that never becomes ready (#2092).
  • StreamExt::chain() sequences a second stream after the first completes (#2093).
  • StreamExt::collect() transform a stream into a collection (#2109).
  • StreamExt::fuse ends the stream after the first None (#2085).
  • StreamExt::merge combines two streams, yielding values as they become ready (#2091).
  • Task-local storage (#2126).
... (truncated)
Commits

Dependabot compatibility score

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 commands and options

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)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hickory-dns/hickory-dns/pull/1007 **Author:** [@dependabot-preview[bot]](https://github.com/apps/dependabot-preview) **Created:** 2/1/2020 **Status:** ✅ Merged **Merged:** 2/15/2020 **Merged by:** [@bluejekyll](https://github.com/bluejekyll) **Base:** `master` ← **Head:** `dependabot/cargo/tokio-0.2.11` --- ### 📝 Commits (3) - [`a2d436a`](https://github.com/hickory-dns/hickory-dns/commit/a2d436ab514ad2641e431cec108ba113efe4dd6f) Bump tokio from 0.2.9 to 0.2.11 - [`6d887c5`](https://github.com/hickory-dns/hickory-dns/commit/6d887c5b52b3585a942d3caaf370473e26890219) Fix bad 0.2.111 from dependabot for tokio dependency - [`eea38c9`](https://github.com/hickory-dns/hickory-dns/commit/eea38c9529772dd0454147cf95a1817285a47bf9) fix bad tokio 0.2.111 dependendabot version for tokio ### 📊 Changes **11 files changed** (+28 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+17 -17) 📝 `bin/Cargo.toml` (+1 -1) 📝 `crates/client/Cargo.toml` (+1 -1) 📝 `crates/https/Cargo.toml` (+1 -1) 📝 `crates/native-tls/Cargo.toml` (+1 -1) 📝 `crates/openssl/Cargo.toml` (+2 -2) 📝 `crates/proto/Cargo.toml` (+1 -1) 📝 `crates/resolver/Cargo.toml` (+1 -1) 📝 `crates/rustls/Cargo.toml` (+1 -1) 📝 `crates/server/Cargo.toml` (+1 -1) 📝 `tests/integration-tests/Cargo.toml` (+1 -1) </details> ### 📄 Description Bumps [tokio](https://github.com/tokio-rs/tokio) from 0.2.9 to 0.2.11. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tokio-rs/tokio/releases">tokio's releases</a>.</em></p> <blockquote> <h2>Tokio v0.2.11</h2> <p>Introduces <a href="https://docs.rs/tokio/0.2.11/tokio/macro.select.html"><code>select!</code></a>, <a href="https://docs.rs/tokio/0.2.11/tokio/macro.join.html"><code>join!</code></a>, and <a href="https://docs.rs/tokio/0.2.11/tokio/macro.try_join.html"><code>try_join!</code></a> macros for waiting on multiple async operations concurrently from the same task. These macros are implemented primarily as declarative macros, which works around the recursion limit issue. The <code>select!</code> macro works with any type that implements <code>Future</code> and does not require special <code>FusedFuture</code> traits.</p> <h3>Fixes</h3> <ul> <li>docs: misc fixes and tweaks (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2155">#2155</a>, <a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2103">#2103</a>, <a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2027">#2027</a>, <a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2167">#2167</a>, <a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2175">#2175</a>).</li> <li>macros: handle generics in <code>#[tokio::main]</code> method (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2177">#2177</a>).</li> <li>sync: <code>broadcast</code> potential lost notifications (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2135">#2135</a>).</li> <li>rt: improve &quot;no runtime&quot; panic messages (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2145">#2145</a>).</li> </ul> <h3>Added</h3> <ul> <li>optional support for using <code>parking_lot</code> internally (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2164">#2164</a>).</li> <li>fs: <code>fs::copy</code>, an async version of <code>std::fs::copy</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2079">#2079</a>).</li> <li>macros: <code>select!</code> waits for the first branch to complete (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2152">#2152</a>).</li> <li>macros: <code>join!</code> waits for all branches to complete (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2158">#2158</a>).</li> <li>macros: <code>try_join!</code> waits for all branches to complete or the first error (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2169">#2169</a>).</li> <li>macros: <code>pin!</code> pins a value to the stack (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2163">#2163</a>).</li> <li>net: <code>ReadHalf::poll()</code> and <code>ReadHalf::poll_peak</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2151">#2151</a>)</li> <li>stream: <code>StreamExt::timeout()</code> sets a per-item max duration (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2149">#2149</a>).</li> <li>stream: <code>StreamExt::fold()</code> applies a function, producing a single value. (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2122">#2122</a>).</li> <li>sync: impl <code>Eq</code>, <code>PartialEq</code> for <code>oneshot::RecvError</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2168">#2168</a>).</li> <li>task: methods for inspecting the <code>JoinError</code> cause (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2051">#2051</a>).</li> </ul> <h2>Tokio v0.2.10</h2> <p>Introduces a task-local storage solution that works with Rust's &quot;task&quot; concept and supports multiplexing futures on the same runtime task (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2126">#2126</a>). A number of other incremental improvements are included.</p> <p>This release includes a few fixes, including fixing a scenario in which undefined behavior could be introduced when the user provided a buggy <code>AsyncRead</code> implementation.</p> <h3>Fixes</h3> <ul> <li><code>#[tokio::main]</code> when <code>rt-core</code> feature flag is not enabled (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2139">#2139</a>).</li> <li>remove <code>AsyncBufRead</code> from <code>BufStream</code> impl block (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2108">#2108</a>).</li> <li>potential undefined behavior when implementing <code>AsyncRead</code> incorrectly (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2030">#2030</a>).</li> </ul> <h3>Added</h3> <ul> <li><code>BufStream::with_capacity</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2125">#2125</a>).</li> <li>impl <code>From</code> and <code>Default</code> for <code>RwLock</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2089">#2089</a>).</li> <li><code>io::ReadHalf::is_pair_of</code> checks if provided <code>WriteHalf</code> is for the same underlying object (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1762">#1762</a>, <a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2144">#2144</a>).</li> <li><code>runtime::Handle::try_current()</code> returns a handle to the current runtime (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2118">#2118</a>).</li> <li><code>stream::empty()</code> returns an immediately ready empty stream (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2092">#2092</a>).</li> <li><code>stream::once(val)</code> returns a stream that yields a single value: <code>val</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2094">#2094</a>).</li> <li><code>stream::pending()</code> returns a stream that never becomes ready (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2092">#2092</a>).</li> <li><code>StreamExt::chain()</code> sequences a second stream after the first completes (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2093">#2093</a>).</li> <li><code>StreamExt::collect()</code> transform a stream into a collection (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2109">#2109</a>).</li> <li><code>StreamExt::fuse</code> ends the stream after the first <code>None</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2085">#2085</a>).</li> <li><code>StreamExt::merge</code> combines two streams, yielding values as they become ready (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2091">#2091</a>).</li> <li>Task-local storage (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2126">#2126</a>).</li> </ul> </tr></table> ... (truncated) </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/tokio-rs/tokio/commit/00e3c29e487ff05b6252be8052b7ba86f7c08202"><code>00e3c29</code></a> chore: prepare v0.2.11 release (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2179">#2179</a>)</li> <li><a href="https://github.com/tokio-rs/tokio/commit/bcba4aaa5414eeb12b57e86a3abaf61425cef22b"><code>bcba4aa</code></a> docs: write sync mod API docs (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2175">#2175</a>)</li> <li><a href="https://github.com/tokio-rs/tokio/commit/71c47fabf4a8a450c3b41d58de304a6a49fb4061"><code>71c47fa</code></a> chore: bump nightly version used in CI (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2178">#2178</a>)</li> <li><a href="https://github.com/tokio-rs/tokio/commit/4996e276733a13fd16b2a08f617570ea201718ba"><code>4996e27</code></a> macros: fix skipping generics on #[tokio::main] (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2177">#2177</a>)</li> <li><a href="https://github.com/tokio-rs/tokio/commit/5bf06f2b5a81ae7b5b8adfe4a44fab033f4156cf"><code>5bf06f2</code></a> future: provide try_join! macro (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2169">#2169</a>)</li> <li><a href="https://github.com/tokio-rs/tokio/commit/12be90e3fff4041ea6398fc8cd834c3ec173bce5"><code>12be90e</code></a> stream: add StreamExt::timeout() (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2149">#2149</a>)</li> <li><a href="https://github.com/tokio-rs/tokio/commit/0d49e112b2a7fc3cc268c1c140d0130d865af760"><code>0d49e11</code></a> sync: impl equality traits for oneshot::RecvError (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2168">#2168</a>)</li> <li><a href="https://github.com/tokio-rs/tokio/commit/9eca96aa214cb8e2fd695cbed179f93826b3ef46"><code>9eca96a</code></a> rt: improve &quot;no runtime&quot; panic messages (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2145">#2145</a>)</li> <li><a href="https://github.com/tokio-rs/tokio/commit/a16c9a5a018af21ce48895207564a74c7feacc8b"><code>a16c9a5</code></a> rt: test block_in_place followed by Pending (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2120">#2120</a>)</li> <li><a href="https://github.com/tokio-rs/tokio/commit/f0bfebb7e1b1b7e86857781a6d730679b9761daf"><code>f0bfebb</code></a> fs: add fs::copy (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2079">#2079</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tokio-rs/tokio/compare/tokio-0.2.9...tokio-0.2.11">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=tokio&package-manager=cargo&previous-version=0.2.9&new-version=0.2.11)](https://dependabot.com/compatibility-score.html?dependency-name=tokio&package-manager=cargo&previous-version=0.2.9&new-version=0.2.11) 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) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-16 02:36:40 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#1859
No description provided.