[PR #138] [CLOSED] Update tokio requirement from 0.2.22 to 0.3.0 #263

Closed
opened 2026-02-27 20:24:00 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ramsayleung/rspotify/pull/138
Author: @dependabot[bot]
Created: 10/15/2020
Status: Closed

Base: masterHead: dependabot/cargo/tokio-0.3.0


📝 Commits (1)

  • 56318b6 Update tokio requirement from 0.2.22 to 0.3.0

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 Cargo.toml (+1 -1)

📄 Description

Updates the requirements on tokio to permit the latest version.

Release notes

Sourced from tokio's releases.

Tokio v0.3.0

This represents a 1.0 beta release. APIs are polished and future-proofed. APIs not included for 1.0 stabilization have been removed.

Biggest changes are:

  • I/O driver internal rewrite. The windows implementation includes significant changes.
  • Runtime API is polished, especially with how it interacts with feature flag combinations.
  • Feature flags are simplified
    • rt-core and rt-util are combined to rt
    • rt-threaded is renamed to rt-multi-thread to match builder API
    • tcp, udp, uds, dns are combied to net.
    • parking_lot is included with full

Changes

  • meta: Minimum supported Rust version is now 1.45.
  • io: AsyncRead trait now takes ReadBuf in order to safely handle reading into uninitialized memory (#2758).
  • io: Internal I/O driver storage is now able to compact (#2757).
  • rt: Runtime::block_on now takes &self (#2782).
  • sync: watch reworked to decouple receiving a change notification from receiving the value (#2814, #2806).
  • sync: Notify::notify is renamed to notify_one (#2822).
  • process: Child::kill is now an async fn that cleans zombies (#2823).
  • sync: use const fn constructors as possible (#2833, #2790)
  • signal: reduce cross-thread notification (#2835).
  • net: tcp,udp,uds types support operations with &self (#2828, #2919, #2934).
  • sync: blocking mpsc channel supports send with &self (#2861).
  • time: rename delay_for and delay_until to sleep and sleep_until (#2826).
  • io: upgrade to mio 0.7 (#2893).
  • io: AsyncSeek trait is tweaked (#2885).
  • fs: File operations take &self (#2930).
  • rt: runtime API, and #[tokio::main] macro polish (#2876)
  • rt: Runtime::enter uses an RAII guard instead of a closure (#2954).

Added

  • sync: map function to lock guards (#2445).
  • sync: blocking_recv and blocking_send fns to mpsc for use outside of Tokio (#2685).
  • rt: Builder::thread_name_fn for configuring thread names (#1921).
  • fs: impl FromRawFd and FromRawHandle for File (#2792).
  • process: Child::wait and Child::try_wait (#2796).
  • rt: support configuring thread keep-alive duration (#2809).
  • rt: task::JoinHandle::abort forcibly cancels a spawned task (#2474).
  • sync: RwLock write guard to read guard downgrading (#2733).
  • net: add poll_* functions that take &self to all net types (#2845)
  • sync: get_mut() for Mutex, RwLock (#2856).
  • sync: mpsc::Sender::closed() waits for Receiver half to close (#2840).
  • sync: mpsc::Sender::is_closed() returns true if Receiver half is closed (#2726).
  • stream: iter and iter_mut to StreamMap (#2890).

... (truncated)

Commits

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)

🔄 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/ramsayleung/rspotify/pull/138 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 10/15/2020 **Status:** ❌ Closed **Base:** `master` ← **Head:** `dependabot/cargo/tokio-0.3.0` --- ### 📝 Commits (1) - [`56318b6`](https://github.com/ramsayleung/rspotify/commit/56318b6c04c8c7a3ae0a200723a2cfeaa19c0702) Update tokio requirement from 0.2.22 to 0.3.0 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.toml` (+1 -1) </details> ### 📄 Description Updates the requirements on [tokio](https://github.com/tokio-rs/tokio) to permit the latest version. <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.3.0</h2> <p>This represents a 1.0 beta release. APIs are polished and future-proofed. APIs not included for 1.0 stabilization have been removed.</p> <p>Biggest changes are:</p> <ul> <li>I/O driver internal rewrite. The windows implementation includes significant changes.</li> <li>Runtime API is polished, especially with how it interacts with feature flag combinations.</li> <li>Feature flags are simplified <ul> <li><code>rt-core</code> and <code>rt-util</code> are combined to <code>rt</code></li> <li><code>rt-threaded</code> is renamed to <code>rt-multi-thread</code> to match builder API</li> <li><code>tcp</code>, <code>udp</code>, <code>uds</code>, <code>dns</code> are combied to <code>net</code>.</li> <li><code>parking_lot</code> is included with <code>full</code></li> </ul> </li> </ul> <h3>Changes</h3> <ul> <li>meta: Minimum supported Rust version is now 1.45.</li> <li>io: <code>AsyncRead</code> trait now takes <code>ReadBuf</code> in order to safely handle reading into uninitialized memory (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2758">#2758</a>).</li> <li>io: Internal I/O driver storage is now able to compact (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2757">#2757</a>).</li> <li>rt: <code>Runtime::block_on</code> now takes <code>&amp;self</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2782">#2782</a>).</li> <li>sync: <code>watch</code> reworked to decouple receiving a change notification from receiving the value (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2814">#2814</a>, <a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2806">#2806</a>).</li> <li>sync: <code>Notify::notify</code> is renamed to <code>notify_one</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2822">#2822</a>).</li> <li>process: <code>Child::kill</code> is now an <code>async fn</code> that cleans zombies (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2823">#2823</a>).</li> <li>sync: use <code>const fn</code> constructors as possible (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2833">#2833</a>, <a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2790">#2790</a>)</li> <li>signal: reduce cross-thread notification (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2835">#2835</a>).</li> <li>net: tcp,udp,uds types support operations with <code>&amp;self</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2828">#2828</a>, <a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2919">#2919</a>, <a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2934">#2934</a>).</li> <li>sync: blocking <code>mpsc</code> channel supports <code>send</code> with <code>&amp;self</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2861">#2861</a>).</li> <li>time: rename <code>delay_for</code> and <code>delay_until</code> to <code>sleep</code> and <code>sleep_until</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2826">#2826</a>).</li> <li>io: upgrade to <code>mio</code> 0.7 (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2893">#2893</a>).</li> <li>io: <code>AsyncSeek</code> trait is tweaked (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2885">#2885</a>).</li> <li>fs: <code>File</code> operations take <code>&amp;self</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2930">#2930</a>).</li> <li>rt: runtime API, and <code>#[tokio::main]</code> macro polish (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2876">#2876</a>)</li> <li>rt: <code>Runtime::enter</code> uses an RAII guard instead of a closure (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2954">#2954</a>).</li> </ul> <h3>Added</h3> <ul> <li>sync: <code>map</code> function to lock guards (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2445">#2445</a>).</li> <li>sync: <code>blocking_recv</code> and <code>blocking_send</code> fns to <code>mpsc</code> for use outside of Tokio (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2685">#2685</a>).</li> <li>rt: <code>Builder::thread_name_fn</code> for configuring thread names (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/1921">#1921</a>).</li> <li>fs: impl <code>FromRawFd</code> and <code>FromRawHandle</code> for <code>File</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2792">#2792</a>).</li> <li>process: <code>Child::wait</code> and <code>Child::try_wait</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2796">#2796</a>).</li> <li>rt: support configuring thread keep-alive duration (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2809">#2809</a>).</li> <li>rt: <code>task::JoinHandle::abort</code> forcibly cancels a spawned task (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2474">#2474</a>).</li> <li>sync: <code>RwLock</code> write guard to read guard downgrading (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2733">#2733</a>).</li> <li>net: add <code>poll_*</code> functions that take <code>&amp;self</code> to all net types (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2845">#2845</a>)</li> <li>sync: <code>get_mut()</code> for <code>Mutex</code>, <code>RwLock</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2856">#2856</a>).</li> <li>sync: <code>mpsc::Sender::closed()</code> waits for <code>Receiver</code> half to close (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2840">#2840</a>).</li> <li>sync: <code>mpsc::Sender::is_closed()</code> returns true if <code>Receiver</code> half is closed (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2726">#2726</a>).</li> <li>stream: <code>iter</code> and <code>iter_mut</code> to <code>StreamMap</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2890">#2890</a>).</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/tokio-rs/tokio/commit/12f1dffa2d76577ed6a6ed2c15de75d91992f66f"><code>12f1dff</code></a> chore: prepare for v0.3.0 release (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2960">#2960</a>)</li> <li><a href="https://github.com/tokio-rs/tokio/commit/871289b3e7edee4a4fbe481f38e444dc6b60819a"><code>871289b</code></a> ci: run clippy on MSRV (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2962">#2962</a>)</li> <li><a href="https://github.com/tokio-rs/tokio/commit/30b40ef518d1767736c8ff47c794481e88bfd3e9"><code>30b40ef</code></a> rt: update docs for <code>0.3</code> changes (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2956">#2956</a>)</li> <li><a href="https://github.com/tokio-rs/tokio/commit/22fa88329645e7e819601d3dac8f0afafbca824f"><code>22fa883</code></a> rt: tweak spawn_blocking docs (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2955">#2955</a>)</li> <li><a href="https://github.com/tokio-rs/tokio/commit/00b6127f2ed3125f8b305ab4fd9bb90e99762785"><code>00b6127</code></a> rt: switch <code>enter</code> to an RAII guard (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2954">#2954</a>)</li> <li><a href="https://github.com/tokio-rs/tokio/commit/a249421abc44e768217427a68f5f5e23f9d1cbd5"><code>a249421</code></a> process: update docs regarding zombie processes (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2952">#2952</a>)</li> <li><a href="https://github.com/tokio-rs/tokio/commit/19233508806ddf22a14acf944426e0da8a401df8"><code>1923350</code></a> meta: combine <code>net</code> and <code>dns</code>, use <code>parking_lot</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2951">#2951</a>)</li> <li><a href="https://github.com/tokio-rs/tokio/commit/c90681bd8e629b5fde988b9f5be7b915e5cf8ae5"><code>c90681b</code></a> rt: simplify rt-* features (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2949">#2949</a>)</li> <li><a href="https://github.com/tokio-rs/tokio/commit/24d0a0cfa8916eaef17f40f044d978aa3904d654"><code>24d0a0c</code></a> chore: refactor runtime driver usage of <code>Either</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2918">#2918</a>)</li> <li><a href="https://github.com/tokio-rs/tokio/commit/07802b2c8487c6e70e39d0b0cd6bf7705fc88337"><code>07802b2</code></a> rt: <code>worker_threads</code> must be non-zero (<a href="https://github-redirect.dependabot.com/tokio-rs/tokio/issues/2947">#2947</a>)</li> <li>Additional commits viewable in <a href="https://github.com/tokio-rs/tokio/compare/tokio-0.2.22...tokio-0.3.0">compare view</a></li> </ul> </details> <br /> 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> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 20:24:00 +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/rspotify#263
No description provided.