From b07918b213aa7b0e0c1b40e646c4eb84925f85a8 Mon Sep 17 00:00:00 2001 From: tottoto Date: Fri, 20 Jan 2023 18:34:44 +0900 Subject: [PATCH] Update to tonic 0.8 (#1700) --- .github/workflows/CI.yml | 4 ++++ examples/rest-grpc-multiplex/Cargo.toml | 6 +++--- examples/rest-grpc-multiplex/src/main.rs | 1 - 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 947588d2..a6d15ca4 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -20,6 +20,10 @@ jobs: - examples steps: - uses: actions/checkout@master + - uses: arduino/setup-protoc@v1 + if: matrix.pwd == 'examples' + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} - uses: dtolnay/rust-toolchain@stable with: toolchain: beta diff --git a/examples/rest-grpc-multiplex/Cargo.toml b/examples/rest-grpc-multiplex/Cargo.toml index 4c143cdc..61afe01a 100644 --- a/examples/rest-grpc-multiplex/Cargo.toml +++ b/examples/rest-grpc-multiplex/Cargo.toml @@ -8,12 +8,12 @@ publish = false axum = { path = "../../axum" } futures = "0.3" hyper = { version = "0.14", features = ["full"] } -prost = "0.10" +prost = "0.11" tokio = { version = "1", features = ["full"] } -tonic = { version = "0.7" } +tonic = { version = "0.8" } tower = { version = "0.4", features = ["full"] } tracing = "0.1" tracing-subscriber = { version = "0.3", features = ["env-filter"] } [build-dependencies] -tonic-build = { version = "0.7", features = ["prost"] } +tonic-build = { version = "0.8", features = ["prost"] } diff --git a/examples/rest-grpc-multiplex/src/main.rs b/examples/rest-grpc-multiplex/src/main.rs index 2ffc2775..4e03a565 100644 --- a/examples/rest-grpc-multiplex/src/main.rs +++ b/examples/rest-grpc-multiplex/src/main.rs @@ -17,7 +17,6 @@ use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt}; mod multiplex_service; mod proto { - #![allow(clippy::derive_partial_eq_without_eq)] tonic::include_proto!("helloworld"); }