From 20d459ba50fbf79f02481b5c003c1f662915d03d Mon Sep 17 00:00:00 2001 From: Calciumdibromid Bot Date: Tue, 22 Nov 2022 12:48:30 +0000 Subject: [PATCH] Update Rust crate tokio to 1.22.0 (#1651) 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.21.2` -> `1.22.0` | | [tokio](https://tokio.rs) ([source](https://github.com/tokio-rs/tokio)) | dev-dependencies | minor | `1.21.2` -> `1.22.0` | --- ### Release Notes
tokio-rs/tokio ### [`v1.22.0`](https://github.com/tokio-rs/tokio/releases/tag/tokio-1.22.0): Tokio v1.22.0 [Compare Source](https://github.com/tokio-rs/tokio/compare/tokio-1.21.2...tokio-1.22.0) ##### Added - runtime: add `Handle::runtime_flavor` ([#​5138]) - sync: add `Mutex::blocking_lock_owned` ([#​5130]) - sync: add `Semaphore::MAX_PERMITS` ([#​5144]) - sync: add `merge()` to semaphore permits ([#​4948]) - sync: add `mpsc::WeakUnboundedSender` ([#​5189]) ##### Added (unstable) - process: add `Command::process_group` ([#​5114]) - runtime: export metrics about the blocking thread pool ([#​5161]) - task: add `task::id()` and `task::try_id()` ([#​5171]) ##### Fixed - macros: don't take ownership of futures in macros ([#​5087]) - runtime: fix Stacked Borrows violation in `LocalOwnedTasks` ([#​5099]) - runtime: mitigate ABA with 32-bit queue indices when possible ([#​5042]) - task: wake local tasks to the local queue when woken by the same thread ([#​5095]) - time: panic in release mode when `mark_pending` called illegally ([#​5093]) - runtime: fix typo in expect message ([#​5169]) - runtime: fix `unsync_load` on atomic types ([#​5175]) - task: elaborate safety comments in task deallocation ([#​5172]) - runtime: fix `LocalSet` drop in thread local ([#​5179]) - net: remove libc type leakage in a public API ([#​5191]) - runtime: update the alignment of `CachePadded` ([#​5106]) ##### Changed - io: make `tokio::io::copy` continue filling the buffer when writer stalls ([#​5066]) - runtime: remove `coop::budget` from `LocalSet::run_until` ([#​5155]) - sync: make `Notify` panic safe ([#​5154]) ##### Documented - io: fix doc for `write_i8` to use signed integers ([#​5040]) - net: fix doc typos for TCP and UDP `set_tos` methods ([#​5073]) - net: fix function name in `UdpSocket::recv` documentation ([#​5150]) - sync: typo in `TryLockError` for `RwLock::try_write` ([#​5160]) - task: document that spawned tasks execute immediately ([#​5117]) - time: document return type of `timeout` ([#​5118]) - time: document that `timeout` checks only before poll ([#​5126]) - sync: specify return type of `oneshot::Receiver` in docs ([#​5198]) ##### Internal changes - runtime: use const `Mutex::new` for globals ([#​5061]) - runtime: remove `Option` around `mio::Events` in io driver ([#​5078]) - runtime: remove a conditional compilation clause ([#​5104]) - runtime: remove a reference to internal time handle ([#​5107]) - runtime: misc time driver cleanup ([#​5120]) - runtime: move signal driver to runtime module ([#​5121]) - runtime: signal driver now uses I/O driver directly ([#​5125]) - runtime: start decoupling I/O driver and I/O handle ([#​5127]) - runtime: switch `io::handle` refs with scheduler:Handle ([#​5128]) - runtime: remove Arc from I/O driver ([#​5134]) - runtime: use signal driver handle via `scheduler::Handle` ([#​5135]) - runtime: move internal clock fns out of context ([#​5139]) - runtime: remove `runtime::context` module ([#​5140]) - runtime: keep driver cfgs in `driver.rs` ([#​5141]) - runtime: add `runtime::context` to unify thread-locals ([#​5143]) - runtime: rename some confusing internal variables/fns ([#​5151]) - runtime: move `coop` mod into `runtime` ([#​5152]) - runtime: move budget state to context thread-local ([#​5157]) - runtime: move park logic into runtime module ([#​5158]) - runtime: move `Runtime` into its own file ([#​5159]) - runtime: unify entering a runtime with `Handle::enter` ([#​5163]) - runtime: remove handle reference from each scheduler ([#​5166]) - runtime: move `enter` into `context` ([#​5167]) - runtime: combine context and entered thread-locals ([#​5168]) - runtime: fix accidental unsetting of current handle ([#​5178]) - runtime: move `CoreStage` methods to `Core` ([#​5182]) - sync: name mpsc semaphore types ([#​5146]) [#​4948]: https://github.com/tokio-rs/tokio/pull/4948 [#​5040]: https://github.com/tokio-rs/tokio/pull/5040 [#​5042]: https://github.com/tokio-rs/tokio/pull/5042 [#​5061]: https://github.com/tokio-rs/tokio/pull/5061 [#​5066]: https://github.com/tokio-rs/tokio/pull/5066 [#​5073]: https://github.com/tokio-rs/tokio/pull/5073 [#​5078]: https://github.com/tokio-rs/tokio/pull/5078 [#​5087]: https://github.com/tokio-rs/tokio/pull/5087 [#​5093]: https://github.com/tokio-rs/tokio/pull/5093 [#​5095]: https://github.com/tokio-rs/tokio/pull/5095 [#​5099]: https://github.com/tokio-rs/tokio/pull/5099 [#​5104]: https://github.com/tokio-rs/tokio/pull/5104 [#​5106]: https://github.com/tokio-rs/tokio/pull/5106 [#​5107]: https://github.com/tokio-rs/tokio/pull/5107 [#​5114]: https://github.com/tokio-rs/tokio/pull/5114 [#​5117]: https://github.com/tokio-rs/tokio/pull/5117 [#​5118]: https://github.com/tokio-rs/tokio/pull/5118 [#​5120]: https://github.com/tokio-rs/tokio/pull/5120 [#​5121]: https://github.com/tokio-rs/tokio/pull/5121 [#​5125]: https://github.com/tokio-rs/tokio/pull/5125 [#​5126]: https://github.com/tokio-rs/tokio/pull/5126 [#​5127]: https://github.com/tokio-rs/tokio/pull/5127 [#​5128]: https://github.com/tokio-rs/tokio/pull/5128 [#​5130]: https://github.com/tokio-rs/tokio/pull/5130 [#​5134]: https://github.com/tokio-rs/tokio/pull/5134 [#​5135]: https://github.com/tokio-rs/tokio/pull/5135 [#​5138]: https://github.com/tokio-rs/tokio/pull/5138 [#​5138]: https://github.com/tokio-rs/tokio/pull/5138 [#​5139]: https://github.com/tokio-rs/tokio/pull/5139 [#​5140]: https://github.com/tokio-rs/tokio/pull/5140 [#​5141]: https://github.com/tokio-rs/tokio/pull/5141 [#​5143]: https://github.com/tokio-rs/tokio/pull/5143 [#​5144]: https://github.com/tokio-rs/tokio/pull/5144 [#​5144]: https://github.com/tokio-rs/tokio/pull/5144 [#​5146]: https://github.com/tokio-rs/tokio/pull/5146 [#​5150]: https://github.com/tokio-rs/tokio/pull/5150 [#​5151]: https://github.com/tokio-rs/tokio/pull/5151 [#​5152]: https://github.com/tokio-rs/tokio/pull/5152 [#​5154]: https://github.com/tokio-rs/tokio/pull/5154 [#​5155]: https://github.com/tokio-rs/tokio/pull/5155 [#​5157]: https://github.com/tokio-rs/tokio/pull/5157 [#​5158]: https://github.com/tokio-rs/tokio/pull/5158 [#​5159]: https://github.com/tokio-rs/tokio/pull/5159 [#​5160]: https://github.com/tokio-rs/tokio/pull/5160 [#​5161]: https://github.com/tokio-rs/tokio/pull/5161 [#​5163]: https://github.com/tokio-rs/tokio/pull/5163 [#​5166]: https://github.com/tokio-rs/tokio/pull/5166 [#​5167]: https://github.com/tokio-rs/tokio/pull/5167 [#​5168]: https://github.com/tokio-rs/tokio/pull/5168 [#​5169]: https://github.com/tokio-rs/tokio/pull/5169 [#​5171]: https://github.com/tokio-rs/tokio/pull/5171 [#​5172]: https://github.com/tokio-rs/tokio/pull/5172 [#​5175]: https://github.com/tokio-rs/tokio/pull/5175 [#​5178]: https://github.com/tokio-rs/tokio/pull/5178 [#​5179]: https://github.com/tokio-rs/tokio/pull/5179 [#​5182]: https://github.com/tokio-rs/tokio/pull/5182 [#​5189]: https://github.com/tokio-rs/tokio/pull/5189 [#​5191]: https://github.com/tokio-rs/tokio/pull/5191 [#​5198]: https://github.com/tokio-rs/tokio/pull/5198
--- ### 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, check this box --- 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/1651 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 | 4 ++-- webserver/Cargo.toml | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/crates/config/Cargo.toml b/crates/config/Cargo.toml index 95ae467fe..0c0501eb2 100644 --- a/crates/config/Cargo.toml +++ b/crates/config/Cargo.toml @@ -17,7 +17,7 @@ log = "0.4.17" serde = { version = "1.0.147", features = ["derive"] } serde_json = "1.0.89" thiserror = "1.0.37" -tokio = { version = "1.21.2", features = ["fs", "io-util"] } +tokio = { version = "1.22.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 ac9c9ede4..9f6b17bcc 100644 --- a/crates/load_save/Cargo.toml +++ b/crates/load_save/Cargo.toml @@ -23,12 +23,12 @@ regex = { version = "1.7.0", optional = true } serde = { version = "1.0.147", features = ["derive"] } serde_json = { version = "1.0.89", optional = true } thiserror = "1.0.37" -tokio = { version = "1.21.2", features = ["fs"], optional = true } +tokio = { version = "1.22.0", features = ["fs"], optional = true } types = { path = "../types/", features = ["lock"] } wkhtmltopdf = { version = "0.4.0", optional = true } [dev-dependencies] -tokio = { version = "1.21.2", features = ["rt", "macros"] } +tokio = { version = "1.22.0", features = ["rt", "macros"] } [features] beryllium = ["chrono", "quick-xml", "regex"] diff --git a/crates/logger/Cargo.toml b/crates/logger/Cargo.toml index aa8a76f7f..7fc88fc4a 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.147", features = ["derive"], optional = true } -tokio = "1.21.2" +tokio = "1.22.0" types = { path = "../types/" } diff --git a/crates/search/Cargo.toml b/crates/search/Cargo.toml index 555e84fe6..46e7cc300 100644 --- a/crates/search/Cargo.toml +++ b/crates/search/Cargo.toml @@ -25,7 +25,7 @@ serde = { version = "1.0.147", features = ["derive"] } serde_json = "1.0.89" structopt = { version = "0.3.26", optional = true } thiserror = "1.0.37" -tokio = { version = "1.21.2", default-features = false, optional = true } +tokio = { version = "1.22.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 5a6e361e6..757ff64af 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.23", features = ["serde"] } log = "0.4.17" serde = { version = "1.0.147", features = ["derive"] } -tokio = { version = "1.21.2", features = ["sync"], default-features = false, optional = true } +tokio = { version = "1.22.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 0ed3ad748..75b48a72d 100644 --- a/frontend/src-tauri/Cargo.lock +++ b/frontend/src-tauri/Cargo.lock @@ -3692,9 +3692,9 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tokio" -version = "1.21.2" +version = "1.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9e03c497dc955702ba729190dc4aac6f2a0ce97f913e5b1b5912fc5039d9099" +checksum = "d76ce4a75fb488c605c54bf610f221cea8b0dafb53333c1a67e8ee199dcd2ae3" dependencies = [ "autocfg", "bytes", diff --git a/frontend/src-tauri/Cargo.toml b/frontend/src-tauri/Cargo.toml index 8ad3321b0..34fc0acf2 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.89" tauri = { version = "1.2.0", features = ["api-all"] } -tokio = { version = "1.21.2", features = ["macros", "rt-multi-thread"] } +tokio = { version = "1.22.0", features = ["macros", "rt-multi-thread"] } types = { path = "../../crates/types" } [features] diff --git a/webserver/Cargo.lock b/webserver/Cargo.lock index 2266112db..70eff76c7 100644 --- a/webserver/Cargo.lock +++ b/webserver/Cargo.lock @@ -1711,9 +1711,9 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tokio" -version = "1.21.2" +version = "1.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9e03c497dc955702ba729190dc4aac6f2a0ce97f913e5b1b5912fc5039d9099" +checksum = "d76ce4a75fb488c605c54bf610f221cea8b0dafb53333c1a67e8ee199dcd2ae3" dependencies = [ "autocfg", "bytes", diff --git a/webserver/Cargo.toml b/webserver/Cargo.toml index 67bd2ba20..6f726779a 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.147", features = ["derive"] } -tokio = { version = "1.21.2", features = ["macros", "rt-multi-thread"] } +tokio = { version = "1.22.0", features = ["macros", "rt-multi-thread"] } types = { path = "../crates/types/" } uuid = { version = "1.2.2", features = ["serde", "v4"] } warp = "0.3.3"