[PR #940] [CLOSED] Bump tokio from 0.2.0-alpha.6 to 0.2.2 #1805

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

📋 Pull Request Information

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

Base: masterHead: dependabot/cargo/tokio-0.2.2


📝 Commits (1)

  • 145b9d6 Bump tokio from 0.2.0-alpha.6 to 0.2.2

📊 Changes

11 files changed (+37 additions, -152 deletions)

View changed files

📝 Cargo.lock (+26 -141)
📝 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 (+1 -1)
📝 crates/proto/Cargo.toml (+1 -1)
📝 crates/resolver/Cargo.toml (+2 -2)
📝 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.0-alpha.6 to 0.2.2.

Release notes

Sourced from tokio's releases.

Tokio v0.2.2

Primarily a release fix for basic_scheduler and task::LocalSet.

task::LocalSet was introduced in v0.2.1 and provides tooling to run !Send tasks. The task::LocalSet structure replaces the need to have separate runtimes. The advantage being that it can be used with the threaded runtime in order to run both Send futures across multiple threads and !Send futures on the current thread.

use tokio::runtime::Runtime;
use tokio::task;

use std::rc::Rc;

let unsend_data = Rc::new("my unsend data...");

let mut rt = Runtime::new().unwrap();

// Construct a local task set that can run `!Send` futures.
let local = task::LocalSet::new();

// Run the local task group.
local.block_on(&mut rt, async move {
    let unsend_data = unsend_data.clone();
    // `spawn_local` ensures that the future is spawned on the local
    // task group.
    task::spawn_local(async move {
        println!("{}", unsend_data);
        // ...
    }).await.unwrap();
});

Fixes

  • scheduling with basic_scheduler (#1861).
  • update spawn panic message to specify that a task scheduler is required (#1839).
  • API docs example for runtime::Builder to include a task scheduler (#1841).
  • general documentation (#1834).
  • building on illumos/solaris (#1772).
  • panic when dropping LocalSet (#1843).
  • API docs mention the required Cargo features for Builder::basic_scheduler and Builder::threaded_scheduler (#1858).

Added

  • impl Stream for signal::unix::Signal (#1849).
  • API docs for platform specific behavior of signal::ctrl_c and signal::unix::Signal (#1854).
  • API docs for signal::unix::Signal::{recv, poll_recv} and signal::windows::CtrlBreak::{recv, poll_recv} (#1854).
  • File::into_std and File::try_into_std methods (#1856).

Tokio v0.2.1

Fixes

  • API docs for TcpListener::incoming, UnixListener::incoming (#1831).
... (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/940 **Author:** [@dependabot-preview[bot]](https://github.com/apps/dependabot-preview) **Created:** 12/2/2019 **Status:** ❌ Closed **Base:** `master` ← **Head:** `dependabot/cargo/tokio-0.2.2` --- ### 📝 Commits (1) - [`145b9d6`](https://github.com/hickory-dns/hickory-dns/commit/145b9d6bf6750e44c9c86beb508ede61be426904) Bump tokio from 0.2.0-alpha.6 to 0.2.2 ### 📊 Changes **11 files changed** (+37 additions, -152 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+26 -141) 📝 `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` (+1 -1) 📝 `crates/proto/Cargo.toml` (+1 -1) 📝 `crates/resolver/Cargo.toml` (+2 -2) 📝 `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.0-alpha.6 to 0.2.2. <details> <summary>Release notes</summary> *Sourced from [tokio's releases](https://github.com/tokio-rs/tokio/releases).* > ## Tokio v0.2.2 > Primarily a release fix for `basic_scheduler` and `task::LocalSet`. > > `task::LocalSet` was introduced in v0.2.1 and provides tooling to run `!Send` tasks. The `task::LocalSet` structure replaces the need to have separate runtimes. The advantage being that it can be used with the threaded runtime in order to run both `Send` futures across multiple threads and `!Send` futures on the current thread. > > ```rust > use tokio::runtime::Runtime; > use tokio::task; > > use std::rc::Rc; > > let unsend_data = Rc::new("my unsend data..."); > > let mut rt = Runtime::new().unwrap(); > > // Construct a local task set that can run `!Send` futures. > let local = task::LocalSet::new(); > > // Run the local task group. > local.block_on(&mut rt, async move { > let unsend_data = unsend_data.clone(); > // `spawn_local` ensures that the future is spawned on the local > // task group. > task::spawn_local(async move { > println!("{}", unsend_data); > // ... > }).await.unwrap(); > }); > ``` > > > ### Fixes > - scheduling with `basic_scheduler` ([#1861](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1861)). > - update `spawn` panic message to specify that a task scheduler is required ([#1839](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1839)). > - API docs example for `runtime::Builder` to include a task scheduler ([#1841](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1841)). > - general documentation ([#1834](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1834)). > - building on illumos/solaris ([#1772](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1772)). > - panic when dropping `LocalSet` ([#1843](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1843)). > - API docs mention the required Cargo features for `Builder::basic_scheduler` and `Builder::threaded_scheduler` ([#1858](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1858)). > > ### Added > - impl `Stream` for `signal::unix::Signal` ([#1849](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1849)). > - API docs for platform specific behavior of `signal::ctrl_c` and `signal::unix::Signal` ([#1854](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1854)). > - API docs for `signal::unix::Signal::{recv, poll_recv}` and `signal::windows::CtrlBreak::{recv, poll_recv}` ([#1854](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1854)). > - `File::into_std` and `File::try_into_std` methods ([#1856](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1856)). > > ## Tokio v0.2.1 > ### Fixes > - API docs for `TcpListener::incoming`, `UnixListener::incoming` ([#1831](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1831)). > ></tr></table> ... (truncated) </details> <details> <summary>Commits</summary> - [`467b6ea`](https://github.com/tokio-rs/tokio/commit/467b6ea78364515e1472338cce70ef029e9bbb38) chore: prepare v0.2.2 release ([#1857](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1857)) - [`a2cfc87`](https://github.com/tokio-rs/tokio/commit/a2cfc877a7f45eb0e1ae8d2775e22ee91da725ec) rt: fix `basic_scheduler` notification bug ([#1861](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1861)) - [`ec7f2ae`](https://github.com/tokio-rs/tokio/commit/ec7f2ae30629e5ec164d2a65de9341cf049a2a0b) docs: Mention features for basic_scheduler, threaded_scheduler ([#1858](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1858)) - [`4261ab6`](https://github.com/tokio-rs/tokio/commit/4261ab6627d1da5e5c70a4b88ccdfc329334716b) fs: add File::into_std and File::try_into_std methods ([#1856](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1856)) - [`aef434c`](https://github.com/tokio-rs/tokio/commit/aef434c089754051e4a10c0e618f46003f31d2dc) signal: update documentation with caveats ([#1854](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1854)) - [`cd73951`](https://github.com/tokio-rs/tokio/commit/cd73951130286bc7c8ff113084e00a71eced4b60) Implement Stream for signal::unix::Signal ([#1849](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1849)) - [`524e663`](https://github.com/tokio-rs/tokio/commit/524e66314faacd9803792ce2a9dc13befd2ceeeb) task: fix panic when dropping `LocalSet` ([#1843](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1843)) - [`34d751b`](https://github.com/tokio-rs/tokio/commit/34d751bf92294b64a3c8ea79a612b796672253a1) net: fix ucred for illumos/solaris ([#1772](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1772)) - [`942feab`](https://github.com/tokio-rs/tokio/commit/942feab040e28d1e1547012a0fb81212299e6596) doc: misc API documentation fixes ([#1834](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1834)) - [`dc356a4`](https://github.com/tokio-rs/tokio/commit/dc356a41589a6129ec5db375e0ab9baee8612b83) doc: fix `runtime::Builder` example ([#1841](https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1841)) - Additional commits viewable in [compare view](https://github.com/tokio-rs/tokio/compare/tokio-0.2.0-alpha.6...tokio-0.2.2) </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=tokio&package-manager=cargo&previous-version=0.2.0-alpha.6&new-version=0.2.2)](https://dependabot.com/compatibility-score.html?dependency-name=tokio&package-manager=cargo&previous-version=0.2.0-alpha.6&new-version=0.2.2) 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:26 +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#1805
No description provided.