From 27030b08f49715f2a7310cee07e0a2b5c89153dc Mon Sep 17 00:00:00 2001 From: gerald <3949379+getong@users.noreply.github.com> Date: Sat, 23 May 2026 23:45:16 +0800 Subject: [PATCH 1/4] update rand to 0.10 --- example-service/Cargo.toml | 2 +- tarpc/Cargo.toml | 2 +- tarpc/src/trace.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example-service/Cargo.toml b/example-service/Cargo.toml index 2d63f443d..cb1cb4cb9 100644 --- a/example-service/Cargo.toml +++ b/example-service/Cargo.toml @@ -20,7 +20,7 @@ log = "0.4" futures = "0.3" opentelemetry = { version = "0.31" } opentelemetry-otlp = { version = "0.31", features = ["grpc-tonic"] } -rand = "0.9" +rand = "0.10" tarpc = { version = "0.37", path = "../tarpc", features = ["full"] } tokio = { version = "1", features = ["macros", "net", "rt-multi-thread"] } tracing = { version = "0.1" } diff --git a/tarpc/Cargo.toml b/tarpc/Cargo.toml index 9be517e7e..4f6d4db4d 100644 --- a/tarpc/Cargo.toml +++ b/tarpc/Cargo.toml @@ -45,7 +45,7 @@ fnv = "1.0" futures = "0.3" humantime = "2.3" pin-project = "1.1" -rand = "0.9" +rand = "0.10" serde = { optional = true, version = "1.0", features = ["derive"] } static_assertions = "1.1" tarpc-plugins = { path = "../plugins", version = "0.14" } diff --git a/tarpc/src/trace.rs b/tarpc/src/trace.rs index 6d27c99e2..d78f960af 100644 --- a/tarpc/src/trace.rs +++ b/tarpc/src/trace.rs @@ -17,7 +17,7 @@ //! tracing](https://opencensus.io/core-concepts/tracing/). use opentelemetry::trace::TraceContextExt; -use rand::Rng; +use rand::{Rng, RngExt}; use std::{ convert::TryFrom, fmt::{self, Formatter}, From 2a467562c5e18900466a6193aa70f9e0cbd8459d Mon Sep 17 00:00:00 2001 From: gerald <3949379+getong@users.noreply.github.com> Date: Sat, 23 May 2026 23:48:35 +0800 Subject: [PATCH 2/4] update opentelemetry dependencies --- example-service/Cargo.toml | 10 +++++----- tarpc/Cargo.toml | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/example-service/Cargo.toml b/example-service/Cargo.toml index cb1cb4cb9..1bc4fb0f8 100644 --- a/example-service/Cargo.toml +++ b/example-service/Cargo.toml @@ -18,16 +18,16 @@ anyhow = "1.0" clap = { version = "4.5", features = ["derive"] } log = "0.4" futures = "0.3" -opentelemetry = { version = "0.31" } -opentelemetry-otlp = { version = "0.31", features = ["grpc-tonic"] } +opentelemetry = { version = "0.32" } +opentelemetry-otlp = { version = "0.32", features = ["grpc-tonic"] } rand = "0.10" tarpc = { version = "0.37", path = "../tarpc", features = ["full"] } tokio = { version = "1", features = ["macros", "net", "rt-multi-thread"] } tracing = { version = "0.1" } -tracing-opentelemetry = "0.32" +tracing-opentelemetry = "0.33" tracing-subscriber = { version = "0.3", features = ["env-filter"] } -opentelemetry_sdk = { version = "0.31", features = ["rt-tokio"] } -opentelemetry-semantic-conventions = "0.31" +opentelemetry_sdk = { version = "0.32", features = ["rt-tokio"] } +opentelemetry-semantic-conventions = "0.32" [lib] name = "service" diff --git a/tarpc/Cargo.toml b/tarpc/Cargo.toml index 4f6d4db4d..0a43c029d 100644 --- a/tarpc/Cargo.toml +++ b/tarpc/Cargo.toml @@ -57,9 +57,9 @@ tracing = { version = "0.1", default-features = false, features = [ "attributes", "log", ] } -tracing-opentelemetry = { version = "0.32", default-features = false } -opentelemetry = { version = "0.31", default-features = false } -opentelemetry-semantic-conventions = "0.31" +tracing-opentelemetry = { version = "0.33", default-features = false } +opentelemetry = { version = "0.32", default-features = false } +opentelemetry-semantic-conventions = "0.32" [dev-dependencies] anyhow = "1.0" @@ -68,9 +68,9 @@ bincode = { version = "2.0", features = ["serde"] } bytes = { version = "1", features = ["serde"] } flate2 = "1.1" futures-test = "0.3" -opentelemetry = { version = "0.31", default-features = false } -opentelemetry-otlp = { version = "0.31", features = ["grpc-tonic"] } -opentelemetry_sdk = { version = "0.31", features = ["rt-tokio"] } +opentelemetry = { version = "0.32", default-features = false } +opentelemetry-otlp = { version = "0.32", features = ["grpc-tonic"] } +opentelemetry_sdk = { version = "0.32", features = ["rt-tokio"] } pin-utils = "0.1" serde_bytes = "0.11" tracing-subscriber = { version = "0.3", features = ["env-filter"] } From 7cdab6a896580faeffe209dd1e30ac3532452d9a Mon Sep 17 00:00:00 2001 From: gerald <3949379+getong@users.noreply.github.com> Date: Sat, 8 Aug 2026 02:05:14 +0800 Subject: [PATCH 3/4] update test files --- .../no_serde1/no_explicit_serde_without_feature.stderr | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tarpc/tests/compile_fail/no_serde1/no_explicit_serde_without_feature.stderr b/tarpc/tests/compile_fail/no_serde1/no_explicit_serde_without_feature.stderr index 27744b374..e97af1fb0 100644 --- a/tarpc/tests/compile_fail/no_serde1/no_explicit_serde_without_feature.stderr +++ b/tarpc/tests/compile_fail/no_serde1/no_explicit_serde_without_feature.stderr @@ -3,9 +3,3 @@ error: To enable serde, first enable the `serde1` feature of tarpc | 1 | #[tarpc::service(derive_serde = true)] | ^^^^^^^^^^^^ - -error[E0433]: failed to resolve: use of undeclared type `FooRequest` - --> tests/compile_fail/no_serde1/no_explicit_serde_without_feature.rs:7:13 - | -7 | let x = FooRequest::Foo {}; - | ^^^^^^^^^^ use of undeclared type `FooRequest` From 23e99d586f0d597806f8ecf82ae927b0564efeff Mon Sep 17 00:00:00 2001 From: gerald <3949379+getong@users.noreply.github.com> Date: Sat, 8 Aug 2026 02:16:56 +0800 Subject: [PATCH 4/4] update clap, syn --- example-service/Cargo.toml | 2 +- plugins/Cargo.toml | 2 +- tarpc/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example-service/Cargo.toml b/example-service/Cargo.toml index 1bc4fb0f8..ca00ff611 100644 --- a/example-service/Cargo.toml +++ b/example-service/Cargo.toml @@ -15,7 +15,7 @@ description = "An example server built on tarpc." [dependencies] anyhow = "1.0" -clap = { version = "4.5", features = ["derive"] } +clap = { version = "4.6", features = ["derive"] } log = "0.4" futures = "0.3" opentelemetry = { version = "0.32" } diff --git a/plugins/Cargo.toml b/plugins/Cargo.toml index 9d0853433..c202f01e1 100644 --- a/plugins/Cargo.toml +++ b/plugins/Cargo.toml @@ -22,7 +22,7 @@ travis-ci = { repository = "google/tarpc" } [dependencies] proc-macro2 = "1.0" quote = "1.0" -syn = { version = "2.0", features = ["full", "extra-traits"] } +syn = { version = "3.0", features = ["full", "extra-traits"] } [lib] proc-macro = true diff --git a/tarpc/Cargo.toml b/tarpc/Cargo.toml index 0a43c029d..c79af73fe 100644 --- a/tarpc/Cargo.toml +++ b/tarpc/Cargo.toml @@ -43,7 +43,7 @@ travis-ci = { repository = "google/tarpc" } [dependencies] fnv = "1.0" futures = "0.3" -humantime = "2.3" +humantime = "2.4" pin-project = "1.1" rand = "0.10" serde = { optional = true, version = "1.0", features = ["derive"] }