This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
287: Bump async-std from 1.2.0 to 1.3.0 r=mergify[bot] a=dependabot-preview[bot] Bumps [async-std](https://github.com/async-rs/async-std) from 1.2.0 to 1.3.0. <details> <summary>Release notes</summary> *Sourced from [async-std's releases](https://github.com/async-rs/async-std/releases).* > ## v1.3.0 > > [API Documentation](https://docs.rs/async-std/1.3.0/async-std) > > This patch introduces `Stream::delay`, more methods on `DoubleEndedStream`, > and improves compile times. `Stream::delay` is a new API that's similar to > [`task::sleep`](https://docs.rs/async-std/1.2.0/async_std/task/fn.sleep.html), > but can be passed as part of as stream, rather than as a separate block. This is > useful for examples, or when manually debugging race conditions. > > ## Examples > > ```rust > let start = Instant::now(); > let mut s = stream::from_iter(vec![0u8, 1]).delay(Duration::from_millis(200)); > > // The first time will take more than 200ms due to delay. > s.next().await; > assert!(start.elapsed().as_millis() >= 200); > > // There will be no delay after the first time. > s.next().await; > assert!(start.elapsed().as_millis() <= 210); > ``` > > ## Added > > - Added `Stream::delay` as "unstable" [([#309](https://github-redirect.dependabot.com/async-rs/async-std/issues/309))](https://github-redirect.dependabot.com/async-rs/async-std/pull/309) > - Added `DoubleEndedStream::next_back` as "unstable" [([#562](https://github-redirect.dependabot.com/async-rs/async-std/issues/562))](https://github-redirect.dependabot.com/async-rs/async-std/pull/562) > - Added `DoubleEndedStream::nth_back` as "unstable" [([#562](https://github-redirect.dependabot.com/async-rs/async-std/issues/562))](https://github-redirect.dependabot.com/async-rs/async-std/pull/562) > - Added `DoubleEndedStream::rfind` as "unstable" [([#562](https://github-redirect.dependabot.com/async-rs/async-std/issues/562))](https://github-redirect.dependabot.com/async-rs/async-std/pull/562) > - Added `DoubleEndedStream::rfold` as "unstable" [([#562](https://github-redirect.dependabot.com/async-rs/async-std/issues/562))](https://github-redirect.dependabot.com/async-rs/async-std/pull/562) > - Added `DoubleEndedStream::try_rfold` as "unstable" [([#562](https://github-redirect.dependabot.com/async-rs/async-std/issues/562))](https://github-redirect.dependabot.com/async-rs/async-std/pull/562) > - `stream::Once` now implements `DoubleEndedStream` [([#562](https://github-redirect.dependabot.com/async-rs/async-std/issues/562))](https://github-redirect.dependabot.com/async-rs/async-std/pull/562) > - `stream::FromIter` now implements `DoubleEndedStream` [([#562](https://github-redirect.dependabot.com/async-rs/async-std/issues/562))](https://github-redirect.dependabot.com/async-rs/async-std/pull/562) > > ## Changed > > - Removed our dependency on `async-macros`, speeding up compilation [([#610](https://github-redirect.dependabot.com/async-rs/async-std/issues/610))](https://github-redirect.dependabot.com/async-rs/async-std/pull/610) > > ## Fixes > > - Fixed a link in the task docs [([#598](https://github-redirect.dependabot.com/async-rs/async-std/issues/598))](https://github-redirect.dependabot.com/async-rs/async-std/pull/598) > - Fixed the `UdpSocket::recv` example [([#603](https://github-redirect.dependabot.com/async-rs/async-std/issues/603))](https://github-redirect.dependabot.com/async-rs/async-std/pull/603) > - Fixed a link to `task::block_on` [([#608](https://github-redirect.dependabot.com/async-rs/async-std/issues/608))](https://github-redirect.dependabot.com/async-rs/async-std/pull/608) > - Fixed an incorrect API mention in `task::Builder` [([#612](https://github-redirect.dependabot.com/async-rs/async-std/issues/612))](https://github-redirect.dependabot.com/async-rs/async-std/pull/612) > - Fixed leftover mentions of `futures-preview` [([#595](https://github-redirect.dependabot.com/async-rs/async-std/issues/595))](https://github-redirect.dependabot.com/async-rs/async-std/pull/595) > - Fixed a typo in the tutorial [([#614](https://github-redirect.dependabot.com/async-rs/async-std/issues/614))](https://github-redirect.dependabot.com/async-rs/async-std/pull/614) > - `<TcpStream as Write>::poll_close` now closes the write half of the stream [([#618](https://github-redirect.dependabot.com/async-rs/async-std/issues/618))](https://github-redirect.dependabot.com/async-rs/async-std/pull/618) > ></tr></table> ... (truncated) </details> <details> <summary>Changelog</summary> *Sourced from [async-std's changelog](https://github.com/async-rs/async-std/blob/master/CHANGELOG.md).* > # [1.3.0] - 2019-12-12 > > [API Documentation](https://docs.rs/async-std/1.3.0/async-std) > > This patch introduces `Stream::delay`, more methods on `DoubleEndedStream`, > and improves compile times. `Stream::delay` is a new API that's similar to > [`task::sleep`](https://docs.rs/async-std/1.2.0/async_std/task/fn.sleep.html), > but can be passed as part of as stream, rather than as a separate block. This is > useful for examples, or when manually debugging race conditions. > > ## Examples > > ```rust > let start = Instant::now(); > let mut s = stream::from_iter(vec![0u8, 1]).delay(Duration::from_millis(200)); > > // The first time will take more than 200ms due to delay. > s.next().await; > assert!(start.elapsed().as_millis() >= 200); > > // There will be no delay after the first time. > s.next().await; > assert!(start.elapsed().as_millis() <= 210); > ``` > > ## Added > > - Added `Stream::delay` as "unstable" [([#309](https://github-redirect.dependabot.com/async-rs/async-std/issues/309))](https://github-redirect.dependabot.com/async-rs/async-std/pull/309) > - Added `DoubleEndedStream::next_back` as "unstable" [([#562](https://github-redirect.dependabot.com/async-rs/async-std/issues/562))](https://github-redirect.dependabot.com/async-rs/async-std/pull/562) > - Added `DoubleEndedStream::nth_back` as "unstable" [([#562](https://github-redirect.dependabot.com/async-rs/async-std/issues/562))](https://github-redirect.dependabot.com/async-rs/async-std/pull/562) > - Added `DoubleEndedStream::rfind` as "unstable" [([#562](https://github-redirect.dependabot.com/async-rs/async-std/issues/562))](https://github-redirect.dependabot.com/async-rs/async-std/pull/562) > - Added `DoubleEndedStream::rfold` as "unstable" [([#562](https://github-redirect.dependabot.com/async-rs/async-std/issues/562))](https://github-redirect.dependabot.com/async-rs/async-std/pull/562) > - Added `DoubleEndedStream::try_rfold` as "unstable" [([#562](https://github-redirect.dependabot.com/async-rs/async-std/issues/562))](https://github-redirect.dependabot.com/async-rs/async-std/pull/562) > - `stream::Once` now implements `DoubleEndedStream` [([#562](https://github-redirect.dependabot.com/async-rs/async-std/issues/562))](https://github-redirect.dependabot.com/async-rs/async-std/pull/562) > - `stream::FromIter` now implements `DoubleEndedStream` [([#562](https://github-redirect.dependabot.com/async-rs/async-std/issues/562))](https://github-redirect.dependabot.com/async-rs/async-std/pull/562) > > ## Changed > > - Removed our dependency on `async-macros`, speeding up compilation [([#610](https://github-redirect.dependabot.com/async-rs/async-std/issues/610))](https://github-redirect.dependabot.com/async-rs/async-std/pull/610) > > ## Fixes > > - Fixed a link in the task docs [([#598](https://github-redirect.dependabot.com/async-rs/async-std/issues/598))](https://github-redirect.dependabot.com/async-rs/async-std/pull/598) > - Fixed the `UdpSocket::recv` example [([#603](https://github-redirect.dependabot.com/async-rs/async-std/issues/603))](https://github-redirect.dependabot.com/async-rs/async-std/pull/603) > - Fixed a link to `task::block_on` [([#608](https://github-redirect.dependabot.com/async-rs/async-std/issues/608))](https://github-redirect.dependabot.com/async-rs/async-std/pull/608) > - Fixed an incorrect API mention in `task::Builder` [([#612](https://github-redirect.dependabot.com/async-rs/async-std/issues/612))](https://github-redirect.dependabot.com/async-rs/async-std/pull/612) > - Fixed leftover mentions of `futures-preview` [([#595](https://github-redirect.dependabot.com/async-rs/async-std/issues/595))](https://github-redirect.dependabot.com/async-rs/async-std/pull/595) > - Fixed a typo in the tutorial [([#614](https://github-redirect.dependabot.com/async-rs/async-std/issues/614))](https://github-redirect.dependabot.com/async-rs/async-std/pull/614) > - `<TcpStream as Write>::poll_close` now closes the write half of the stream [([#618](https://github-redirect.dependabot.com/async-rs/async-std/issues/618))](https://github-redirect.dependabot.com/async-rs/async-std/pull/618) </details> <details> <summary>Commits</summary> - [`2f09077`](async-rs/async-std@2f09077) Merge pull request [#617](https://github-redirect.dependabot.com/async-rs/async-std/issues/617) from async-rs/1.3.0 - [`055c64e`](async-rs/async-std@055c64e) 1.3.0 - [`96d6fc4`](async-rs/async-std@96d6fc4) Merge pull request [#618](https://github-redirect.dependabot.com/async-rs/async-std/issues/618) from twittner/poll_close_shutdown - [`3d3bf91`](async-rs/async-std@3d3bf91) Merge pull request [#562](https://github-redirect.dependabot.com/async-rs/async-std/issues/562) from felipesere/double_ended_ext - [`182fe68`](async-rs/async-std@182fe68) No need for a custom impl for FromIter for DoubleEndedStream - [`b0038e1`](async-rs/async-std@b0038e1) Only implement the DoubleEndedStream for once when the flag is on - [`8e5dede`](async-rs/async-std@8e5dede) Restructure package. No longer use a extension trait to match std. - [`41cf0f8`](async-rs/async-std@41cf0f8) Make Once a DoubleEndedStream - [`f9a4c35`](async-rs/async-std@f9a4c35) Silence warning about missing docs for the double_ended module - [`6e8236d`](async-rs/async-std@6e8236d) Document from_iter for DoubleEndedStream - Additional commits viewable in [compare view](async-rs/async-std@v1.2.0...v1.3.0) </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=async-std&package-manager=cargo&previous-version=1.2.0&new-version=1.3.0)](https://dependabot.com/compatibility-score.html?dependency-name=async-std&package-manager=cargo&previous-version=1.2.0&new-version=1.3.0) You can trigger a rebase of this PR 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 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 the `.dependabot/config.yml` file in this repo: - Update frequency - 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> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
- Loading branch information