Skip to content

Commit

Permalink
Update Rust crate tokio to 1.25.0 (#2054)
Browse files Browse the repository at this point in the history
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [tokio](https://tokio.rs) ([source](https://togithub.com/tokio-rs/tokio)) | dependencies | minor | `1.23.1` -> `1.25.0` |
| [tokio](https://tokio.rs) ([source](https://togithub.com/tokio-rs/tokio)) | dev-dependencies | minor | `1.24.2` -> `1.25.0` |
| [tokio](https://tokio.rs) ([source](https://togithub.com/tokio-rs/tokio)) | dependencies | minor | `1.24.2` -> `1.25.0` |

---

### Release Notes

<details>
<summary>tokio-rs/tokio</summary>

### [`v1.25.0`](https://togithub.com/tokio-rs/tokio/releases/tag/tokio-1.25.0): Tokio v1.25.0

### 1.25.0 (January 28, 2023)

##### Fixed

-   rt: fix runtime metrics reporting ([#&#8203;5330])

##### Added

-   sync: add `broadcast::Sender::len` ([#&#8203;5343])

##### Changed

-   fs: increase maximum read buffer size to 2MiB ([#&#8203;5397])

[#&#8203;5330]: https://togithub.com/tokio-rs/tokio/pull/5330

[#&#8203;5343]: https://togithub.com/tokio-rs/tokio/pull/5343

[#&#8203;5397]: https://togithub.com/tokio-rs/tokio/pull/5397

### [`v1.24.1`](https://togithub.com/tokio-rs/tokio/releases/tag/tokio-1.24.1): Tokio v1.24.1

[Compare Source](https://togithub.com/tokio-rs/tokio/compare/tokio-1.24.0...tokio-1.24.1)

This release fixes a compilation failure on targets without `AtomicU64` when using rustc older than 1.63. ([#&#8203;5356])

[#&#8203;5356]: https://togithub.com/tokio-rs/tokio/pull/5356

### [`v1.24.0`](https://togithub.com/tokio-rs/tokio/releases/tag/tokio-1.24.0): Tokio v1.24.0

[Compare Source](https://togithub.com/tokio-rs/tokio/compare/tokio-1.23.1...tokio-1.24.0)

The highlight of this release is the reduction of lock contention for all I/O operations ([#&#8203;5300](https://togithub.com/tokio-rs/tokio/issues/5300)). We have received reports of up to a 20% improvement in CPU utilization and increased throughput for real-world I/O heavy applications.

##### Fixed

-   rt: improve native `AtomicU64` support detection ([#&#8203;5284])

##### Added

-   rt: add configuration option for max number of I/O events polled from the OS
    per tick ([#&#8203;5186])
-   rt: add an environment variable for configuring the default number of worker
    threads per runtime instance ([#&#8203;4250])

##### Changed

-   sync: reduce MPSC channel stack usage ([#&#8203;5294])
-   io: reduce lock contention in I/O operations  ([#&#8203;5300])
-   fs: speed up `read_dir()` by chunking operations ([#&#8203;5309])
-   rt: use internal `ThreadId` implementation ([#&#8203;5329])
-   test: don't auto-advance time when a `spawn_blocking` task is running ([#&#8203;5115])

[#&#8203;5186]: https://togithub.com/tokio-rs/tokio/pull/5186

[#&#8203;5294]: https://togithub.com/tokio-rs/tokio/pull/5294

[#&#8203;5284]: https://togithub.com/tokio-rs/tokio/pull/5284

[#&#8203;4250]: https://togithub.com/tokio-rs/tokio/pull/4250

[#&#8203;5300]: https://togithub.com/tokio-rs/tokio/pull/5300

[#&#8203;5329]: https://togithub.com/tokio-rs/tokio/pull/5329

[#&#8203;5115]: https://togithub.com/tokio-rs/tokio/pull/5115

[#&#8203;5309]: https://togithub.com/tokio-rs/tokio/pull/5309

</details>

---

### 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.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/hashintel/hash).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMjQuMiIsInVwZGF0ZWRJblZlciI6IjM0LjEyNC4yIn0=-->
  • Loading branch information
renovate[bot] authored Feb 10, 2023
1 parent 8dfd34b commit 7b6a8ce
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/hash-graph/bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ graph-test-data = { path = "../tests/test_data" }
rand = "0.8.5"
serde = { version = "1.0.152", features = ["derive"] }
serde_json = "1.0.91"
tokio = { version = "1.24.2", features = ["rt-multi-thread", "macros"] }
tokio = { version = "1.25.0", features = ["rt-multi-thread", "macros"] }
tokio-postgres = { version = "0.7.7", default-features = false }
type-system = { git = "https://github.com/blockprotocol/blockprotocol", rev = "2ea406f" }
uuid = { version = "1.2.2", features = ["v4", "serde"] }
Expand Down
2 changes: 1 addition & 1 deletion apps/hash-graph/bin/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ reqwest = { version = "0.11", default-features = false, features = ["rustls-tls"
regex = "1.7.1"
serde_json = "1.0.91"
tarpc = { version = "0.31", features = ["serde1", "tokio1", "serde-transport", "tcp"], optional = true }
tokio = { version = "1.24.2", features = ["rt-multi-thread", "macros"] }
tokio = { version = "1.25.0", features = ["rt-multi-thread", "macros"] }
tokio-postgres = { version = "0.7.7", default-features = false }
tokio-serde = { version = "0.8", features = ["messagepack"], optional = true }
tracing = "0.1.37"
Expand Down
2 changes: 1 addition & 1 deletion apps/hash-graph/lib/graph/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ include_dir = "0.7.3"
refinery = { version = "0.8", features = ["tokio-postgres"] }

[dev-dependencies]
tokio = { version = "1.24.2", features = ["rt-multi-thread", "macros", "tracing"] }
tokio = { version = "1.25.0", features = ["rt-multi-thread", "macros", "tracing"] }
graph-test-data = { path = "../../tests/test_data" }
criterion = "0.4.0"

Expand Down
2 changes: 1 addition & 1 deletion apps/hash-graph/lib/type-fetcher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ tracing = "0.1.37"

futures = "0.3"
tarpc = { version = "0.31", features = ["tokio1"] }
tokio = { version = "1.23.1", features = ["rt-multi-thread", "macros"] }
tokio = { version = "1.25.0", features = ["rt-multi-thread", "macros"] }

reqwest = { version = "0.11", default-features = false, features = ["json", "rustls-tls"] }

0 comments on commit 7b6a8ce

Please sign in to comment.