From 205e47e8756511be37edb933948ba5051ad234d0 Mon Sep 17 00:00:00 2001 From: Arjan Bal Date: Sat, 15 Aug 2026 23:06:40 +0530 Subject: [PATCH 1/2] fix other tests --- examples/Cargo.toml | 2 +- tonic-reflection/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Cargo.toml b/examples/Cargo.toml index bb8a5222f..b6ad0cd42 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -339,6 +339,6 @@ protobuf-well-known-types = { version = "4.35.1-release", optional = true } [build-dependencies] tonic-prost-build = { path = "../tonic-prost-build" } -grpc-protobuf-build = { path = "../grpc-protobuf-build", default-features = false } +grpc-protobuf-build = { path = "../grpc-protobuf-build" } protoc-gen-rust-grpc = { path = "../protoc-gen-rust-grpc", optional = true } protobuf-well-known-types = { version = "4.35.1-release" } diff --git a/tonic-reflection/Cargo.toml b/tonic-reflection/Cargo.toml index 42e402ef8..09c03172a 100644 --- a/tonic-reflection/Cargo.toml +++ b/tonic-reflection/Cargo.toml @@ -34,7 +34,7 @@ tonic-prost = { version = "0.14.6", path = "../tonic-prost", default-features = [dev-dependencies] tokio-stream = {version = "0.1", default-features = false, features = ["net"]} -tonic = { version = "0.14.6", path = "../tonic", default-features = false, features = ["transport"] } +tonic = { version = "0.14.6", path = "../tonic", default-features = false, features = ["transport", "router"] } [lints] workspace = true From ed92e6531288254d3d1b63f46854f36876391955 Mon Sep 17 00:00:00 2001 From: Arjan Bal Date: Thu, 20 Aug 2026 16:44:23 +0530 Subject: [PATCH 2/2] remove grpc-gcp example from default feature set --- examples/Cargo.toml | 4 ++-- examples/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/Cargo.toml b/examples/Cargo.toml index b6ad0cd42..0a58ccad8 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -294,7 +294,7 @@ grpc-helloworld = ["dep:grpc", "dep:grpc-protobuf", "dep:protobuf"] full = ["gcp", "routeguide", "reflection", "autoreload", "health", "grpc-web", "tracing", "uds", "streaming", "mock", "json-codec", "compression", "tls", "tls-rustls", "tls-client-auth", "types", "cancellation", "h2c", -"grpc-routeguide", "grpc-helloworld", "grpc-gcp"] +"grpc-routeguide", "grpc-helloworld"] default = ["full"] # Workaround for cargo-udeps bug. # TODO: Remove once the fix is released: https://github.com/est31/cargo-udeps/pull/338 @@ -339,6 +339,6 @@ protobuf-well-known-types = { version = "4.35.1-release", optional = true } [build-dependencies] tonic-prost-build = { path = "../tonic-prost-build" } -grpc-protobuf-build = { path = "../grpc-protobuf-build" } +grpc-protobuf-build = { path = "../grpc-protobuf-build", default-features = false } protoc-gen-rust-grpc = { path = "../protoc-gen-rust-grpc", optional = true } protobuf-well-known-types = { version = "4.35.1-release" } diff --git a/examples/README.md b/examples/README.md index a1efcc9dc..48ad28128 100644 --- a/examples/README.md +++ b/examples/README.md @@ -100,7 +100,7 @@ Once your credentials are set up, you will need your GCP Project ID, which can be found on the main dashboard of the Google Cloud Console. With both of these ready, you can run the example like so: ```bash -$ cargo run --bin grpc-gcp-client -- +$ cargo run --bin grpc-gcp-client --features grpc-gcp -- ``` [Application Default Credentials]: https://docs.cloud.google.com/docs/authentication/application-default-credentials