chore(grpc): bump tonic and prost (#1078)
Some checks failed
CI / check (map[name:poem path:poem]) (push) Has been cancelled
CI / check (map[name:poem-derive path:poem-derive]) (push) Has been cancelled
CI / check (map[name:poem-grpc path:poem-grpc]) (push) Has been cancelled
CI / check (map[name:poem-grpc-build path:poem-grpc-build]) (push) Has been cancelled
CI / check (map[name:poem-lambda path:poem-lambda]) (push) Has been cancelled
CI / check (map[name:poem-mcpserver path:poem-mcpserver]) (push) Has been cancelled
CI / check (map[name:poem-mcpserver-macros path:poem-mcpserver-macros]) (push) Has been cancelled
CI / check (map[name:poem-openapi path:poem-openapi]) (push) Has been cancelled
CI / check (map[name:poem-openapi-derive path:poem-openapi-derive]) (push) Has been cancelled
CI / check-examples (push) Has been cancelled
Code Coverage / cover (push) Has been cancelled

* chore(grpc): bump tonic and prost

* fix: example
This commit is contained in:
Yiyu Lin
2025-07-29 19:06:35 +08:00
committed by GitHub
parent f3cfdd8bcc
commit f6e509b8c3
5 changed files with 8 additions and 10 deletions

View File

@@ -25,4 +25,4 @@ mime = "0.3.16"
open = "5.0.1"
futures-util = "0.3.21"
tokio-stream = "0.1.8"
prost = "0.13.1"
prost = "0.14"

View File

@@ -7,13 +7,13 @@ publish.workspace = true
[dependencies]
poem = { workspace = true, features = ["tower-compat"] }
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
prost = "0.13.1"
tonic = "0.12.1"
prost = "0.14"
tonic = "0.14"
tracing-subscriber.workspace = true
tower = { version = "0.4.8", features = ["buffer"] }
[build-dependencies]
tonic-build = "0.12.1"
tonic-build = "0.14"
[[bin]]
name = "example-tonic-client"

View File

@@ -3,7 +3,5 @@ use std::io::Result;
use poem_grpc_build::Config;
fn main() -> Result<()> {
Config::new()
.type_attribute("routeguide.Point", "#[derive(Hash, Eq)]")
.compile(&["./proto/routeguide.proto"], &["./proto"])
Config::new().compile(&["./proto/routeguide.proto"], &["./proto"])
}

View File

@@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"]
[dependencies]
prettyplease = "0.2.9"
prost-build = "0.13.1"
prost-build = "0.14"
quote.workspace = true
proc-macro2.workspace = true
syn.workspace = true

View File

@@ -31,9 +31,9 @@ tokio = { workspace = true, features = ["io-util", "rt", "sync", "net"] }
itoa = "1.0.2"
percent-encoding = "2.1.0"
bytes.workspace = true
prost = "0.13.1"
prost = "0.14"
base64.workspace = true
prost-types = "0.13.1"
prost-types = "0.14"
tokio-stream = { workspace = true, features = ["sync"] }
serde = { workspace = true, optional = true }
serde_json = { workspace = true, optional = true }