From 62b6b26c4b426e2aabda07390d33b11bb6acee29 Mon Sep 17 00:00:00 2001 From: Calciumdibromid Bot Date: Fri, 2 Sep 2022 19:55:40 +0200 Subject: [PATCH] Update Rust crate tokio to 1.21.0 (#1532) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [tokio](https://tokio.rs) ([source](https://github.com/tokio-rs/tokio)) | dependencies | minor | `1.20.1` -> `1.21.0` | | [tokio](https://tokio.rs) ([source](https://github.com/tokio-rs/tokio)) | dev-dependencies | minor | `1.20.1` -> `1.21.0` | --- ### Release Notes
tokio-rs/tokio ### [`v1.21.0`](https://github.com/tokio-rs/tokio/releases/tag/tokio-1.21.0) [Compare Source](https://github.com/tokio-rs/tokio/compare/tokio-1.20.1...tokio-1.21.0) ##### 1.21.0 (September 2, 2022) This release is the first release of Tokio to intentionally support WASM. The `sync,macros,io-util,rt,time` features are stabilized on WASM. Additionally the wasm32-wasi target is given unstable support for the `net` feature. ##### Added - net: add `device` and `bind_device` methods to TCP/UDP sockets ([#​4882]) - net: add `tos` and `set_tos` methods to TCP and UDP sockets ([#​4877]) - net: add security flags to named pipe `ServerOptions` ([#​4845]) - signal: add more windows signal handlers ([#​4924]) - sync: add `mpsc::Sender::max_capacity` method ([#​4904]) - sync: implement Weak version of `mpsc::Sender` ([#​4595]) - task: add `LocalSet::enter` ([#​4765]) - task: stabilize `JoinSet` and `AbortHandle` ([#​4920]) - tokio: add `track_caller` to public APIs ([#​4805], [#​4848], [#​4852]) - wasm: initial support for `wasm32-wasi` target ([#​4716]) ##### Fixed - miri: improve miri compatibility by avoiding temporary references in `linked_list::Link` impls ([#​4841]) - signal: don't register write interest on signal pipe ([#​4898]) - sync: add `#[must_use]` to lock guards ([#​4886]) - sync: fix hang when calling `recv` on closed and reopened broadcast channel ([#​4867]) - task: propagate attributes on task-locals ([#​4837]) ##### Changed - fs: change panic to error in `File::start_seek` ([#​4897]) - io: reduce syscalls in `poll_read` ([#​4840]) - process: use blocking threadpool for child stdio I/O ([#​4824]) - signal: make `SignalKind` methods const ([#​4956]) ##### Internal changes - rt: extract `basic_scheduler::Config` ([#​4935]) - rt: move I/O driver into `runtime` module ([#​4942]) - rt: rename internal scheduler types ([#​4945]) ##### Documented - chore: fix typos and grammar ([#​4858], [#​4894], [#​4928]) - io: fix typo in `AsyncSeekExt::rewind` docs ([#​4893]) - net: add documentation to `try_read()` for zero-length buffers ([#​4937]) - runtime: remove incorrect panic section for `Builder::worker_threads` ([#​4849]) - sync: doc of `watch::Sender::send` improved ([#​4959]) - task: add cancel safety docs to `JoinHandle` ([#​4901]) - task: expand on cancellation of `spawn_blocking` ([#​4811]) - time: clarify that the first tick of `Interval::tick` happens immediately ([#​4951]) ##### Unstable - rt: add unstable option to disable the LIFO slot ([#​4936]) - task: fix incorrect signature in `Builder::spawn_on` ([#​4953]) - task: make `task::Builder::spawn*` methods fallible ([#​4823]) [#​4595]: https://github.com/tokio-rs/tokio/pull/4595 [#​4716]: https://github.com/tokio-rs/tokio/pull/4716 [#​4765]: https://github.com/tokio-rs/tokio/pull/4765 [#​4805]: https://github.com/tokio-rs/tokio/pull/4805 [#​4811]: https://github.com/tokio-rs/tokio/pull/4811 [#​4823]: https://github.com/tokio-rs/tokio/pull/4823 [#​4824]: https://github.com/tokio-rs/tokio/pull/4824 [#​4837]: https://github.com/tokio-rs/tokio/pull/4837 [#​4840]: https://github.com/tokio-rs/tokio/pull/4840 [#​4841]: https://github.com/tokio-rs/tokio/pull/4841 [#​4845]: https://github.com/tokio-rs/tokio/pull/4845 [#​4848]: https://github.com/tokio-rs/tokio/pull/4848 [#​4849]: https://github.com/tokio-rs/tokio/pull/4849 [#​4852]: https://github.com/tokio-rs/tokio/pull/4852 [#​4858]: https://github.com/tokio-rs/tokio/pull/4858 [#​4867]: https://github.com/tokio-rs/tokio/pull/4867 [#​4877]: https://github.com/tokio-rs/tokio/pull/4877 [#​4882]: https://github.com/tokio-rs/tokio/pull/4882 [#​4886]: https://github.com/tokio-rs/tokio/pull/4886 [#​4893]: https://github.com/tokio-rs/tokio/pull/4893 [#​4894]: https://github.com/tokio-rs/tokio/pull/4894 [#​4897]: https://github.com/tokio-rs/tokio/pull/4897 [#​4898]: https://github.com/tokio-rs/tokio/pull/4898 [#​4901]: https://github.com/tokio-rs/tokio/pull/4901 [#​4904]: https://github.com/tokio-rs/tokio/pull/4904 [#​4920]: https://github.com/tokio-rs/tokio/pull/4920 [#​4924]: https://github.com/tokio-rs/tokio/pull/4924 [#​4928]: https://github.com/tokio-rs/tokio/pull/4928 [#​4935]: https://github.com/tokio-rs/tokio/pull/4935 [#​4936]: https://github.com/tokio-rs/tokio/pull/4936 [#​4937]: https://github.com/tokio-rs/tokio/pull/4937 [#​4942]: https://github.com/tokio-rs/tokio/pull/4942 [#​4945]: https://github.com/tokio-rs/tokio/pull/4945 [#​4951]: https://github.com/tokio-rs/tokio/pull/4951 [#​4953]: https://github.com/tokio-rs/tokio/pull/4953 [#​4956]: https://github.com/tokio-rs/tokio/pull/4956 [#​4959]: https://github.com/tokio-rs/tokio/pull/4959
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Co-authored-by: cabr2-bot Reviewed-on: https://codeberg.org/Calciumdibromid/CaBr2/pulls/1532 Reviewed-by: crapStone Co-authored-by: Calciumdibromid Bot Co-committed-by: Calciumdibromid Bot --- crates/config/Cargo.toml | 2 +- crates/load_save/Cargo.toml | 4 ++-- crates/logger/Cargo.toml | 2 +- crates/search/Cargo.toml | 2 +- crates/types/Cargo.toml | 2 +- frontend/src-tauri/Cargo.lock | 4 ++-- frontend/src-tauri/Cargo.toml | 2 +- webserver/Cargo.lock | 8 ++++---- webserver/Cargo.toml | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/crates/config/Cargo.toml b/crates/config/Cargo.toml index 1b45e784d..d6e0befe9 100644 --- a/crates/config/Cargo.toml +++ b/crates/config/Cargo.toml @@ -17,7 +17,7 @@ log = "0.4.17" serde = { version = "1.0.144", features = ["derive"] } serde_json = "1.0.85" thiserror = "1.0.33" -tokio = { version = "1.20.1", features = ["fs", "io-util"] } +tokio = { version = "1.21.0", features = ["fs", "io-util"] } toml = { version = "0.5.9", features = ["preserve_order"] } types = { path = "../types/" } diff --git a/crates/load_save/Cargo.toml b/crates/load_save/Cargo.toml index 435541f9a..e8d2f9639 100644 --- a/crates/load_save/Cargo.toml +++ b/crates/load_save/Cargo.toml @@ -23,12 +23,12 @@ regex = { version = "1.6.0", optional = true } serde = { version = "1.0.144", features = ["derive"] } serde_json = { version = "1.0.85", optional = true } thiserror = "1.0.33" -tokio = { version = "1.20.1", features = ["fs"], optional = true } +tokio = { version = "1.21.0", features = ["fs"], optional = true } types = { path = "../types/", features = ["lock"] } wkhtmltopdf = { version = "0.4.0", optional = true } [dev-dependencies] -tokio = { version = "1.20.1", features = ["rt", "macros"] } +tokio = { version = "1.21.0", features = ["rt", "macros"] } [features] beryllium = ["chrono", "quick-xml", "regex"] diff --git a/crates/logger/Cargo.toml b/crates/logger/Cargo.toml index ecfda0dbe..06f604e96 100644 --- a/crates/logger/Cargo.toml +++ b/crates/logger/Cargo.toml @@ -15,5 +15,5 @@ config = { path = "../config/" } fern = "0.6.1" log = "0.4.17" serde = { version = "1.0.144", features = ["derive"], optional = true } -tokio = "1.20.1" +tokio = "1.21.0" types = { path = "../types/" } diff --git a/crates/search/Cargo.toml b/crates/search/Cargo.toml index 8c9378bbb..090f7ce64 100644 --- a/crates/search/Cargo.toml +++ b/crates/search/Cargo.toml @@ -25,7 +25,7 @@ serde = { version = "1.0.144", features = ["derive"] } serde_json = "1.0.85" structopt = { version = "0.3.26", optional = true } thiserror = "1.0.33" -tokio = { version = "1.20.1", default-features = false, optional = true } +tokio = { version = "1.21.0", default-features = false, optional = true } types = { path = "../types/", features = ["lock"] } [features] diff --git a/crates/types/Cargo.toml b/crates/types/Cargo.toml index 8088dda70..8036b38fc 100644 --- a/crates/types/Cargo.toml +++ b/crates/types/Cargo.toml @@ -14,7 +14,7 @@ cfg-if = { version = "1.0.0", optional = true } chrono = { version = "0.4.22", features = ["serde"] } log = "0.4.17" serde = { version = "1.0.144", features = ["derive"] } -tokio = { version = "1.20.1", features = ["sync"], default-features = false, optional = true } +tokio = { version = "1.21.0", features = ["sync"], default-features = false, optional = true } [features] lock = ["cfg-if"] diff --git a/frontend/src-tauri/Cargo.lock b/frontend/src-tauri/Cargo.lock index 394730eb2..d288f8690 100644 --- a/frontend/src-tauri/Cargo.lock +++ b/frontend/src-tauri/Cargo.lock @@ -3701,9 +3701,9 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tokio" -version = "1.20.1" +version = "1.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a8325f63a7d4774dd041e363b2409ed1c5cbbd0f867795e661df066b2b0a581" +checksum = "89797afd69d206ccd11fb0ea560a44bbb87731d020670e79416d442919257d42" dependencies = [ "autocfg", "bytes", diff --git a/frontend/src-tauri/Cargo.toml b/frontend/src-tauri/Cargo.toml index 07148f813..4f30e8c1d 100644 --- a/frontend/src-tauri/Cargo.toml +++ b/frontend/src-tauri/Cargo.toml @@ -24,7 +24,7 @@ logger = { path = "../../crates/logger/" } search = { path = "../../crates/search/" } serde_json = "1.0.85" tauri = { version = "1.0.5", features = ["api-all"] } -tokio = { version = "1.20.1", features = ["macros", "rt-multi-thread"] } +tokio = { version = "1.21.0", features = ["macros", "rt-multi-thread"] } types = { path = "../../crates/types" } [features] diff --git a/webserver/Cargo.lock b/webserver/Cargo.lock index d9a7a7c82..7b92c9bc3 100644 --- a/webserver/Cargo.lock +++ b/webserver/Cargo.lock @@ -889,9 +889,9 @@ dependencies = [ [[package]] name = "mio" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "713d550d9b44d89174e066b7a6217ae06234c10cb47819a88290d2b353c31799" +checksum = "57ee1c23c7c63b0c9250c339ffdc69255f110b298b901b9f6c82547b7b87caaf" dependencies = [ "libc", "log", @@ -1732,9 +1732,9 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tokio" -version = "1.20.1" +version = "1.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a8325f63a7d4774dd041e363b2409ed1c5cbbd0f867795e661df066b2b0a581" +checksum = "89797afd69d206ccd11fb0ea560a44bbb87731d020670e79416d442919257d42" dependencies = [ "autocfg", "bytes", diff --git a/webserver/Cargo.toml b/webserver/Cargo.toml index 901df020c..f84957bb9 100644 --- a/webserver/Cargo.toml +++ b/webserver/Cargo.toml @@ -19,7 +19,7 @@ log = "0.4.17" logger = { path = "../crates/logger/" } search = { path = "../crates/search/" } serde = { version = "1.0.144", features = ["derive"] } -tokio = { version = "1.20.1", features = ["macros", "rt-multi-thread"] } +tokio = { version = "1.21.0", features = ["macros", "rt-multi-thread"] } types = { path = "../crates/types/" } uuid = { version = "1.1.2", features = ["serde", "v4"] } warp = "0.3.2"