Skip to content

Commit bec623a

Browse files
committed
chore: update tokio to 1.38.2
There was a soundness defect in Tokio's broadcast channel. This change updates to the oldest version of Tokio with the soundness defect fixed (1.38.2 - 1.38 is the current oldest LTS version). This is preferable to updating to the latest version of Tokio, as that would force users of `console-subscriber` to use that version or later too. Tokio 1.38.2: https://github.com/tokio-rs/tokio/releases/tag/tokio-1.38.2
1 parent 1aa5185 commit bec623a

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

console-subscriber/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ grpc-web = ["dep:tonic-web"]
3232

3333
[dependencies]
3434
crossbeam-utils = "0.8.7"
35-
tokio = { version = "1.34", features = ["sync", "time", "macros", "tracing"] }
35+
tokio = { version = "1.38.2", features = ["sync", "time", "macros", "tracing"] }
3636
tokio-stream = { version = "0.1.16", features = ["net"] }
3737
thread_local = "1.1.4"
3838
console-api = { version = "0.8.0", path = "../console-api", features = ["transport"] }
@@ -57,7 +57,7 @@ crossbeam-channel = "0.5"
5757
tonic-web = { version = "0.12", optional = true }
5858

5959
[dev-dependencies]
60-
tokio = { version = "1.34", features = ["full", "rt-multi-thread"] }
60+
tokio = { version = "1.38.2", features = ["full", "rt-multi-thread"] }
6161
tower = { version = "0.4.12", default-features = false, features = ["util"] }
6262
futures = "0.3"
6363
http = "1.1"

console-subscriber/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ runtime][Tokio] is considered *experimental*. In order to use
6262
```toml
6363
[dependencies]
6464
# ...
65-
tokio = { version = "1.15", features = ["full", "tracing"] }
65+
tokio = { version = "1.38.2", features = ["full", "tracing"] }
6666
```
6767

6868
* The `tokio_unstable` cfg flag, which enables experimental APIs in Tokio, must
@@ -130,7 +130,7 @@ Other instrumentation is added in later Tokio releases:
130130

131131
* [Tokio v1.21.0] or later is required to use newest `task::Builder::spawn*` APIs.
132132

133-
* [Tokio v1.41.0] (as yet unreleased) or later is required for task future sizes and the related
133+
* [Tokio v1.41.0] or later is required for task future sizes and the related
134134
tokio-console lints `auto-boxed-future` and `large-future`.
135135

136136
[Tokio v1.0.0]: https://github.com/tokio-rs/tokio/releases/tag/tokio-1.0.0

tokio-console/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ eula = false
3636
console-api = { version = "0.8.1", path = "../console-api", features = ["transport"] }
3737
clap = { version = "~4.5.4", features = ["wrap_help", "cargo", "derive", "env"] }
3838
clap_complete = "~4.5.2"
39-
tokio = { version = "1.34", features = ["full", "rt-multi-thread"] }
39+
tokio = { version = "1.38.2", features = ["full", "rt-multi-thread"] }
4040
tonic = { version = "0.13.0", features = ["transport"] }
4141
futures = "0.3"
4242
ratatui = { version = "0.26.2", default-features = false, features = ["crossterm"] }

0 commit comments

Comments
 (0)