Source: rust-tonic
Version: 0.14.5+dfsg-4
Severity: important
Tags: patch
User: [email protected]
Usertags: prettyplease-0.3
X-Debbugs-Cc: [email protected]

Dear maintainer,

I am preparing a rust-prettyplease transition to 0.3, which requires syn 3 and 
will likely be uploaded soon.

rust-tonic's build crates depend on prettyplease 0.2 and syn 2, so they need a 
port.

I have attached a debdiff fixing this.

Best regards,
Simon Quigley
[email protected]
diff -Nru rust-tonic-0.14.5+dfsg/debian/changelog 
rust-tonic-0.14.5+dfsg/debian/changelog
--- rust-tonic-0.14.5+dfsg/debian/changelog     2026-08-20 09:01:20.000000000 
-0500
+++ rust-tonic-0.14.5+dfsg/debian/changelog     2026-10-04 07:57:55.000000000 
-0500
@@ -1,3 +1,10 @@
+rust-tonic (0.14.5+dfsg-4.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Use prettyplease 0.3 and syn 3.
+
+ -- Simon Quigley <[email protected]>  Sun, 04 Oct 2026 07:57:55 -0500
+
 rust-tonic (0.14.5+dfsg-4) unstable; urgency=medium
 
   * add patch to restrict test encode_too_big from running on
diff -Nru rust-tonic-0.14.5+dfsg/debian/control 
rust-tonic-0.14.5+dfsg/debian/control
--- rust-tonic-0.14.5+dfsg/debian/control       2026-08-19 07:07:02.000000000 
-0500
+++ rust-tonic-0.14.5+dfsg/debian/control       2026-10-03 21:55:22.000000000 
-0500
@@ -19,7 +19,7 @@
  librust-paste-1-dev,
  librust-percent-encoding-2-dev,
  librust-pin-project-1-dev,
- librust-prettyplease-0.2-dev,
+ librust-prettyplease-0.3-dev,
  librust-proc-macro2-1-dev,
  librust-prost-0.14-dev,
  librust-prost-build-0.14+cleanup-markdown-dev,
@@ -31,7 +31,7 @@
  librust-rustls-native-certs-0.8-dev,
  librust-socket2-0.6-dev,
  librust-static-assertions-1-dev,
- librust-syn-2-dev,
+ librust-syn-3-dev,
  librust-sync-wrapper-1-dev,
  librust-tempfile-3-dev,
  librust-tokio-1-dev,
@@ -55,12 +55,12 @@
 Architecture: all
 #Multi-Arch: foreign
 Depends:
- librust-prettyplease-0.2-dev,
+ librust-prettyplease-0.3-dev,
  librust-proc-macro2-1-dev,
  librust-prost-build-0.14+cleanup-markdown-dev,
  librust-prost-types-0.14-dev,
  librust-quote-1-dev,
- librust-syn-2-dev,
+ librust-syn-3-dev,
  librust-tempfile-3-dev,
 Provides:
  librust-tonic-build-0.14+default-dev (= ${binary:Version}),
diff -Nru rust-tonic-0.14.5+dfsg/debian/patches/2006_prettyplease_0.3.patch 
rust-tonic-0.14.5+dfsg/debian/patches/2006_prettyplease_0.3.patch
--- rust-tonic-0.14.5+dfsg/debian/patches/2006_prettyplease_0.3.patch   
1969-12-31 18:00:00.000000000 -0600
+++ rust-tonic-0.14.5+dfsg/debian/patches/2006_prettyplease_0.3.patch   
2026-10-03 10:28:04.000000000 -0500
@@ -0,0 +1,63 @@
+Description: Use prettyplease 0.3 and syn 3
+Author: Simon Quigley <[email protected]>
+Origin: vendor
+Forwarded: https://github.com/grpc/grpc-rust/pull/2908
+Last-Update: 2026-09-29
+---
+--- a/codegen/Cargo.toml
++++ b/codegen/Cargo.toml
+@@ -6,8 +6,8 @@ edition = "2021"
+ 
+ [dependencies]
+ protox = "0.9"
+-prettyplease = "0.2"
++prettyplease = "0.3"
+ quote = "1"
+-syn = "2"
++syn = "3"
+ tempfile = "3.8.0"
+ tonic-prost-build = {path = "../tonic-prost-build", default-features = false, 
features = ["cleanup-markdown"]}
+--- a/tonic-build/Cargo.toml
++++ b/tonic-build/Cargo.toml
+@@ -15,10 +15,10 @@ version = "0.14.5"
+ rust-version = { workspace = true }
+ 
+ [dependencies]
+-prettyplease = { version = "0.2" }
++prettyplease = { version = "0.3" }
+ proc-macro2 = "1.0"
+ quote = "1.0"
+-syn = "2.0"
++syn = { version = "3", features = ["full", "parsing"] }
+ 
+ [features]
+ default = ["transport"]
+--- a/tonic-prost-build/Cargo.toml
++++ b/tonic-prost-build/Cargo.toml
+@@ -20,10 +20,10 @@ cleanup-markdown = ["prost-build/cleanup
+ tonic-build = { version = "0.14.0", path = "../tonic-build", default-features 
= false }
+ prost-build = { version = "0.14" }
+ prost-types = { version = "0.14" }
+-prettyplease = { version = "0.2" }
++prettyplease = { version = "0.3" }
+ proc-macro2 = "1.0"
+ quote = "1.0"
+-syn = "2.0"
++syn = { version = "3", features = ["full", "parsing"] }
+ tempfile = "3.0"
+ 
+ [dev-dependencies]
+--- a/tonic-protobuf-build/Cargo.toml
++++ b/tonic-protobuf-build/Cargo.toml
+@@ -7,9 +7,9 @@ license = "MIT"
+ publish = false
+ 
+ [dependencies]
+-prettyplease = "0.2.35"
++prettyplease = "0.3"
+ protobuf-codegen = { version = "4.33.0-release" }
+-syn = "2.0.104"
++syn = "3"
+ 
+ [build-dependencies]
+ cmake = "0.1"
diff -Nru rust-tonic-0.14.5+dfsg/debian/patches/series 
rust-tonic-0.14.5+dfsg/debian/patches/series
--- rust-tonic-0.14.5+dfsg/debian/patches/series        2026-08-20 
09:01:20.000000000 -0500
+++ rust-tonic-0.14.5+dfsg/debian/patches/series        2026-09-29 
10:04:05.000000000 -0500
@@ -5,3 +5,4 @@
 2003_avoid_webpki-roots.patch
 2003_no_bench.patch
 2005_limit_workspace.patch
+2006_prettyplease_0.3.patch

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to