From ef6816caa0fe84171105b513425506f25d3082af Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 16 May 2024 15:19:10 +0200 Subject: [PATCH] chore: bump tonic to 0.11 (#547) Updates the dependencies of all crates to use `tonic` and `tonic-build` 0.11. BREAKING CHANGE: This is a breaking change for users of `console-api` and `console-subscriber`, as it changes the public `tonic` dependency to a semver-incompatible version. This breaks compatibility with `tonic` 0.10.x. Co-authored-by: Hayden Stainsby --- Cargo.lock | 12 ++++++------ console-api/Cargo.toml | 4 ++-- console-subscriber/Cargo.toml | 4 ++-- tokio-console/Cargo.toml | 2 +- xtask/Cargo.toml | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index abf284383..d6f4440b9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1966,9 +1966,9 @@ dependencies = [ [[package]] name = "tonic" -version = "0.10.0" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5469afaf78a11265c343a88969045c1568aa8ecc6c787dbf756e92e70f199861" +checksum = "76c4eb7a4e9ef9d4763600161f12f5070b92a578e1b634db88a6887844c91a13" dependencies = [ "async-stream", "async-trait", @@ -1993,9 +1993,9 @@ dependencies = [ [[package]] name = "tonic-build" -version = "0.10.0" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b477abbe1d18c0b08f56cd01d1bc288668c5b5cfd19b2ae1886bbf599c546f1" +checksum = "be4ef6dd70a610078cb4e338a0f79d06bc759ff1b22d2120c2ff02ae264ba9c2" dependencies = [ "prettyplease", "proc-macro2", @@ -2006,9 +2006,9 @@ dependencies = [ [[package]] name = "tonic-web" -version = "0.10.2" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fddb2a37b247e6adcb9f239f4e5cefdcc5ed526141a416b943929f13aea2cce" +checksum = "dc3b0e1cedbf19fdfb78ef3d672cb9928e0a91a9cb4629cc0c916e8cff8aaaa1" dependencies = [ "base64 0.21.0", "bytes", diff --git a/console-api/Cargo.toml b/console-api/Cargo.toml index 626862744..264b8205f 100644 --- a/console-api/Cargo.toml +++ b/console-api/Cargo.toml @@ -29,7 +29,7 @@ keywords = [ transport = ["tonic/transport"] [dependencies] -tonic = { version = "0.10", default-features = false, features = [ +tonic = { version = "0.11", default-features = false, features = [ "prost", "codegen", "transport", @@ -40,7 +40,7 @@ tracing-core = "0.1.17" futures-core = "0.3" [dev-dependencies] -tonic-build = { version = "0.10", default-features = false, features = [ +tonic-build = { version = "0.11", default-features = false, features = [ "prost", "transport" ] } # explicit dep so we can get the version with fixed whitespace. diff --git a/console-subscriber/Cargo.toml b/console-subscriber/Cargo.toml index f7a17d6e2..dff698fe1 100644 --- a/console-subscriber/Cargo.toml +++ b/console-subscriber/Cargo.toml @@ -36,7 +36,7 @@ tokio = { version = "^1.21", features = ["sync", "time", "macros", "tracing"] } tokio-stream = { version = "0.1", features = ["net"] } thread_local = "1.1.3" console-api = { version = "0.6.0", path = "../console-api", features = ["transport"] } -tonic = { version = "0.10", features = ["transport"] } +tonic = { version = "0.11", features = ["transport"] } tracing-core = "0.1.24" tracing = "0.1.26" tracing-subscriber = { version = "0.3.17", default-features = false, features = ["fmt", "registry"] } @@ -55,7 +55,7 @@ serde_json = "1" crossbeam-channel = "0.5" # Only for the web feature: -tonic-web = { version = "0.10.2", optional = true } +tonic-web = { version = "0.11", optional = true } [dev-dependencies] tokio = { version = "^1.21", features = ["full", "rt-multi-thread"] } diff --git a/tokio-console/Cargo.toml b/tokio-console/Cargo.toml index de01b8b7f..0cc678ab7 100644 --- a/tokio-console/Cargo.toml +++ b/tokio-console/Cargo.toml @@ -38,7 +38,7 @@ console-api = { version = "0.6.0", path = "../console-api", features = ["transpo clap = { version = "~4.1.14", features = ["wrap_help", "cargo", "derive", "env"] } clap_complete = "~4.1.6" tokio = { version = "1", features = ["full", "rt-multi-thread"] } -tonic = { version = "0.10", features = ["transport"] } +tonic = { version = "0.11", features = ["transport"] } futures = "0.3" ratatui = { version = "0.26.2", default-features = false, features = ["crossterm"] } tower = "0.4.12" diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index 942416d42..f25fe6534 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -7,7 +7,7 @@ rust-version = "1.74.0" publish = false [dependencies] -tonic-build = { version = "0.10", default-features = false, features = [ +tonic-build = { version = "0.11", default-features = false, features = [ "prost", "transport" ] } clap = { version = "~4.1.14", features = ["derive"] }