[PR #947] [CLOSED] Bump tokio from 0.2.2 to 0.2.4 #1814

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

📋 Pull Request Information

Original PR: https://github.com/hickory-dns/hickory-dns/pull/947
Author: @dependabot-preview[bot]
Created: 12/9/2019
Status: Closed

Base: masterHead: dependabot/cargo/tokio-0.2.4


📝 Commits (1)

  • 9be8f1c Bump tokio from 0.2.2 to 0.2.4

📊 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.2 to 0.2.4.

Release notes

Sourced from tokio's releases.

Tokio v0.2.4

A small release to fix a potential deadlock when using Mutex.

Fixes

  • sync::Mutex deadlock when lock() future is dropped early (#1898).

Tokio v0.2.3

Mostly a bug fix, doc improvement, and polish release. The biggest new addition are the new helpers to read and write integers. They are on AsyncReadExt and AsyncWriteExt and can make protocol encoding / decoding easier. For example, working with length delimited payloads might look like:

use tokio::io::{self, AsyncReadExt, AsyncWriteExt, BufStream};
use tokio::net::TcpStream;

async fn read_frame(src: &mut BufStream<TcpStream>) -> io::Result<Vec<u8>> {
     let len = src.read_u32().await?;
     let mut frame = vec![0; len as usize];
     src.read_exact(&mut frame).await?;

    Ok(frame)
}

async fn write_frame(dst: &mut BufStream<TcpStream>, frame: &[u8]) -> io::Result<()> {
    dst.write_u32(frame.len() as u32).await?;
    dst.write_all(frame).await?;
    dst.flush().await?;

    Ok(())
}

Added

  • read / write integers using AsyncReadExt and AsyncWriteExt (#1863).
  • read_buf / write_buf for reading / writing Buf / BufMut (#1881).
  • TcpStream::poll_peek - pollable API for performing TCP peek (#1864).
  • sync::oneshot::error::TryRecvError provides variants to detect the error
    kind (#1874).
  • LocalSet::block_on accepts !'static task (#1882).
  • task::JoinError is now Sync (#1888).
  • impl conversions between tokio::time::Instant and
    std::time::Instant (#1904).

Fixes

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/947 **Author:** [@dependabot-preview[bot]](https://github.com/apps/dependabot-preview) **Created:** 12/9/2019 **Status:** ❌ Closed **Base:** `master` ← **Head:** `dependabot/cargo/tokio-0.2.4` --- ### 📝 Commits (1) - [`9be8f1c`](https://github.com/hickory-dns/hickory-dns/commit/9be8f1ca0c6a2e2e458ebc3bc4adf47f6d22d919) Bump tokio from 0.2.2 to 0.2.4 ### 📊 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.2 to 0.2.4. <details> <summary>Release notes</summary> *Sourced from [tokio's releases](https://github.com/tokio-rs/tokio/releases).* > ## Tokio v0.2.4 > A small release to fix a potential deadlock when using `Mutex`. > > ### Fixes > - `sync::Mutex` deadlock when `lock()` future is dropped early ([#1898](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1898)). > > ## Tokio v0.2.3 > Mostly a bug fix, doc improvement, and polish release. The biggest new addition are the new helpers to read and write integers. They are on [`AsyncReadExt`] and [`AsyncWriteExt`] and can make protocol encoding / decoding easier. For example, working with length delimited payloads might look like: > > ```rust > use tokio::io::{self, AsyncReadExt, AsyncWriteExt, BufStream}; > use tokio::net::TcpStream; > > async fn read_frame(src: &mut BufStream<TcpStream>) -> io::Result<Vec<u8>> { > let len = src.read_u32().await?; > let mut frame = vec![0; len as usize]; > src.read_exact(&mut frame).await?; > > Ok(frame) > } > > async fn write_frame(dst: &mut BufStream<TcpStream>, frame: &[u8]) -> io::Result<()> { > dst.write_u32(frame.len() as u32).await?; > dst.write_all(frame).await?; > dst.flush().await?; > > Ok(()) > } > ``` > > [`AsyncReadExt`]: https://docs.rs/tokio/0.2/tokio/io/trait.AsyncReadExt.html > [`AsyncWriteEXt`]: https://docs.rs/tokio/0.2/tokio/io/trait.AsyncWriteExt.html > > ### Added > - read / write integers using `AsyncReadExt` and `AsyncWriteExt` ([#1863](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1863)). > - `read_buf` / `write_buf` for reading / writing `Buf` / `BufMut` ([#1881](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1881)). > - `TcpStream::poll_peek` - pollable API for performing TCP peek ([#1864](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1864)). > - `sync::oneshot::error::TryRecvError` provides variants to detect the error > kind ([#1874](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1874)). > - `LocalSet::block_on` accepts `!'static` task ([#1882](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1882)). > - `task::JoinError` is now `Sync` ([#1888](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1888)). > - impl conversions between `tokio::time::Instant` and > `std::time::Instant` ([#1904](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1904)). > > ### Fixes > - calling `spawn_blocking` after runtime shutdown ([#1875](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1875)). > - `LocalSet` drop inifinite loop ([#1892](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1892)). > - `LocalSet` hang under load ([#1905](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1905)). > - improved documentation ([#1865](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1865), [#1866](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1866), [#1868](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1868), [#1874](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1874), [#1876](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1876), [#1911](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1911)). </details> <details> <summary>Commits</summary> - [`80abff0`](https://github.com/tokio-rs/tokio/commit/80abff0e570e365cca41a1fd7aba5a15a47654d8) chore: prepare v0.2.4 release ([#1917](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1917)) - [`c632337`](https://github.com/tokio-rs/tokio/commit/c632337e6f94013d9d39495f1d442351e6fbf6b6) sync: fix Mutex when lock future dropped before complete ([#1902](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1902)) - [`a53f94a`](https://github.com/tokio-rs/tokio/commit/a53f94ab61184be1fcd128da0f15a43ad30259e4) doc: expand on runtime / spawn docs ([#1914](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1914)) - [`98c9a77`](https://github.com/tokio-rs/tokio/commit/98c9a77f18a2777c42b2ad603e7c322f75463ca0) prepare v0.2.3 release ([#1912](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1912)) - [`e00c496`](https://github.com/tokio-rs/tokio/commit/e00c49611af8feced1f5f3c4b9ba7c5081cee9bd) doc: fix TcpListener example to compile ([#1911](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1911)) - [`9c9fabc`](https://github.com/tokio-rs/tokio/commit/9c9fabc44b317765b5ea618201ce05392256b067) Close markdown ([#1910](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1910)) - [`c3461b3`](https://github.com/tokio-rs/tokio/commit/c3461b3ef3866f6335596d1882a52343cef0bcb5) time: impl From between std / tokio Instants ([#1904](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1904)) - [`b7ecd35`](https://github.com/tokio-rs/tokio/commit/b7ecd350365c2695b2cc6f513ef8a5ec7e320916) task: fix `LocalSet` failing to poll all local futures ([#1905](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1905)) - [`dbcd1f9`](https://github.com/tokio-rs/tokio/commit/dbcd1f9a0964c64d5aa335649eabea281ac59574) time: Remove `HandlePriv` ([#1896](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1896)) - [`0e729aa`](https://github.com/tokio-rs/tokio/commit/0e729aa341028c121b9c39fe552ed4309bae6b6a) task: fix infinite loop when dropping a `LocalSet` ([#1892](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1892)) - Additional commits viewable in [compare view](https://github.com/tokio-rs/tokio/compare/tokio-0.2.2...tokio-0.2.4) </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=tokio&package-manager=cargo&previous-version=0.2.2&new-version=0.2.4)](https://dependabot.com/compatibility-score.html?dependency-name=tokio&package-manager=cargo&previous-version=0.2.2&new-version=0.2.4) 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:26:59 +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#1814
No description provided.