Upgrade dependencies for Axum, Tonic, Prost, and related build tools across crates

This commit updates multiple dependencies, including:
- `axum` upgraded to 0.8 for HTTP and webhook functionality.
- `tonic` upgraded to 0.14 for gRPC support.
- `prost` upgraded to 0.14 for protobuf processing.
- Addition of `tonic-prost` and `tonic-prost-build` for updated gRPC build configurations.

Relevant Cargo.toml entries and `build.rs` are adjusted to reflect these updates.
This commit is contained in:
Till Wegmueller 2025-11-01 15:24:09 +01:00
parent 7ca7966916
commit 952262ede4
No known key found for this signature in database
5 changed files with 8 additions and 7 deletions

View file

@ -16,8 +16,8 @@ tracing-appender = "0.2"
atty = "0.2"
kdl = "6"
# gRPC/protobuf runtime for Runner API
tonic = { version = "0.12", features = ["transport"] }
prost = "0.13"
tonic = { version = "0.14", features = ["transport"] }
prost = "0.14"
# messaging + serialization
lapin = { version = "3", default-features = false, features = ["rustls"] }
serde = { version = "1", features = ["derive"] }
@ -26,6 +26,7 @@ uuid = { version = "1", features = ["serde", "v4"] }
time = { version = "0.3", features = ["serde", "macros"] }
futures-util = "0.3"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "time"] }
tonic-prost = "0.14.2"
[build-dependencies]
tonic-build = "0.12"
tonic-prost-build = { version = "0.14", features = ["transport"] }

View file

@ -1,7 +1,7 @@
fn main() {
// Compile gRPC protobufs for Runner <-> Orchestrator
println!("cargo:rerun-if-changed=proto/runner.proto");
tonic_build::configure()
tonic_prost_build::configure()
.build_server(true)
.compile_protos(&["proto/runner.proto"], &["proto"])
.expect("failed to compile runner proto");

View file

@ -10,7 +10,7 @@ miette = { version = "7", features = ["fancy"] }
tracing = "0.1"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "signal"] }
# HTTP + Webhooks
axum = { version = "0.7", features = ["macros"] }
axum = { version = "0.8", features = ["macros"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Signature verification

View file

@ -22,7 +22,7 @@ reqwest = { version = "0.12", default-features = false, features = ["rustls-tls-
bytes = "1"
path-absolutize = "3"
# gRPC server
tonic = { version = "0.12", features = ["transport"] }
tonic = { version = "0.14", features = ["transport"] }
# Compression/decompression
zstd = "0.13"
# DB (optional basic persistence)

View file

@ -16,5 +16,5 @@ tokio = { version = "1", features = ["rt-multi-thread", "macros", "process", "fs
serde = { version = "1", features = ["derive"] }
serde_yaml = "0.9"
# gRPC client
tonic = { version = "0.12", features = ["transport"] }
tonic = { version = "0.14", features = ["transport"] }
tokio-stream = "0.1"