Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
build(deps): bump tonic version from 0.12 to 0.13 (#8461)
Amisha Prabhat9e435929f0ef
diff --git a/Cargo.lock b/Cargo.lockindex d6037be06f..fdfa2f8770 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -1186,14 +1186,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3a6c9af12842a67734c9a2e355436e5d03b22383ed60cf13cd0c18fbfe3dcbcf"dependencies = ["async-trait",- "axum-core",+ "axum-core 0.4.3","bytes 1.10.1","futures-util","http 1.3.1","http-body 1.0.1","http-body-util","itoa",- "matchit",+ "matchit 0.7.3","memchr","mime","percent-encoding",@@ -1201,7 +1201,33 @@ dependencies = ["rustversion","serde","sync_wrapper 1.0.1",- "tower",+ "tower 0.4.13",+ "tower-layer",+ "tower-service",+]++[[package]]+name = "axum"+version = "0.8.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "021e862c184ae977658b36c4500f7feac3221ca5da43e3f25bd04ab6c79a29b5"+dependencies = [+ "axum-core 0.5.2",+ "bytes 1.10.1",+ "futures-util",+ "http 1.3.1",+ "http-body 1.0.1",+ "http-body-util",+ "itoa",+ "matchit 0.8.4",+ "memchr",+ "mime",+ "percent-encoding",+ "pin-project-lite",+ "rustversion",+ "serde",+ "sync_wrapper 1.0.1",+ "tower 0.5.2","tower-layer","tower-service",]@@ -1226,6 +1252,25 @@ dependencies = ["tower-service",]+[[package]]+name = "axum-core"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "68464cd0412f486726fb3373129ef5d2993f90c34bc2bc1c1e9943b2f4fc7ca6"+dependencies = [+ "bytes 1.10.1",+ "futures-core",+ "http 1.3.1",+ "http-body 1.0.1",+ "http-body-util",+ "mime",+ "pin-project-lite",+ "rustversion",+ "sync_wrapper 1.0.1",+ "tower-layer",+ "tower-service",+]+[[package]]name = "backtrace"version = "0.3.74"@@ -2971,7 +3016,7 @@ dependencies = ["serde","thiserror 1.0.69","tokio 1.45.1",- "tonic",+ "tonic 0.13.1","tonic-build","tonic-reflection","tonic-types",@@ -4706,6 +4751,12 @@ version = "0.7.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94"+[[package]]+name = "matchit"+version = "0.8.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3"+[[package]]name = "maud"version = "0.26.0"@@ -5339,7 +5390,7 @@ dependencies = ["prost","thiserror 1.0.69","tokio 1.45.1",- "tonic",+ "tonic 0.12.3",][[package]]@@ -5351,7 +5402,7 @@ dependencies = ["opentelemetry","opentelemetry_sdk","prost",- "tonic",+ "tonic 0.12.3",][[package]]@@ -5953,8 +6004,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f8650aabb6c35b860610e9cff5dc1af886c9e25073b7b1712a68972af4281302"dependencies = ["bytes 1.10.1",- "heck 0.4.1",- "itertools 0.10.5",+ "heck 0.5.0",+ "itertools 0.13.0","log","multimap","once_cell",@@ -5974,7 +6025,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "acf0c195eebb4af52c752bec4f52f645da98b6e92077a04110c7f349477ae5ac"dependencies = ["anyhow",- "itertools 0.10.5",+ "itertools 0.13.0","proc-macro2","quote","syn 2.0.101",@@ -8798,7 +8849,7 @@ checksum = "877c5b330756d856ffcc4553ab34a5684481ade925ecc54bcd1bf02b1d0d4d52"dependencies = ["async-stream","async-trait",- "axum",+ "axum 0.7.5","base64 0.22.1","bytes 1.10.1","h2 0.4.8",@@ -8814,7 +8865,36 @@ dependencies = ["socket2","tokio 1.45.1","tokio-stream",- "tower",+ "tower 0.4.13",+ "tower-layer",+ "tower-service",+ "tracing",+]++[[package]]+name = "tonic"+version = "0.13.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7e581ba15a835f4d9ea06c55ab1bd4dce26fc53752c69a04aac00703bfb49ba9"+dependencies = [+ "async-trait",+ "axum 0.8.4",+ "base64 0.22.1",+ "bytes 1.10.1",+ "h2 0.4.8",+ "http 1.3.1",+ "http-body 1.0.1",+ "http-body-util",+ "hyper 1.6.0",+ "hyper-timeout",+ "hyper-util",+ "percent-encoding",+ "pin-project",+ "prost",+ "socket2",+ "tokio 1.45.1",+ "tokio-stream",+ "tower 0.5.2","tower-layer","tower-service","tracing",@@ -8822,39 +8902,40 @@ dependencies = [[[package]]name = "tonic-build"-version = "0.12.2"+version = "0.13.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fe4ee8877250136bd7e3d2331632810a4df4ea5e004656990d8d66d2f5ee8a67"+checksum = "eac6f67be712d12f0b41328db3137e0d0757645d8904b4cb7d51cd9c2279e847"dependencies = ["prettyplease","proc-macro2","prost-build",+ "prost-types","quote","syn 2.0.101",][[package]]name = "tonic-reflection"-version = "0.12.3"+version = "0.13.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "878d81f52e7fcfd80026b7fdb6a9b578b3c3653ba987f87f0dce4b64043cba27"+checksum = "f9687bd5bfeafebdded2356950f278bba8226f0b32109537c4253406e09aafe1"dependencies = ["prost","prost-types","tokio 1.45.1","tokio-stream",- "tonic",+ "tonic 0.13.1",][[package]]name = "tonic-types"-version = "0.12.3"+version = "0.13.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0081d8ee0847d01271392a5aebe960a4600f5d4da6c67648a6382a0940f8b367"+checksum = "07439468da24d5f211d3f3bd7b63665d8f45072804457e838a87414a478e2db8"dependencies = ["prost","prost-types",- "tonic",+ "tonic 0.13.1",][[package]]@@ -8893,6 +8974,25 @@ dependencies = ["tracing",]+[[package]]+name = "tower"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9"+dependencies = [+ "futures-core",+ "futures-util",+ "indexmap 2.9.0",+ "pin-project-lite",+ "slab",+ "sync_wrapper 1.0.1",+ "tokio 1.45.1",+ "tokio-util",+ "tower-layer",+ "tower-service",+ "tracing",+]+[[package]]name = "tower-layer"version = "0.3.3"@@ -9059,7 +9159,7 @@ version = "1.6.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675"dependencies = [- "cfg-if 0.1.10",+ "cfg-if 1.0.0","static_assertions",]@@ -9612,7 +9712,7 @@ version = "0.1.9"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"dependencies = [- "windows-sys 0.48.0",+ "windows-sys 0.59.0",][[package]]diff --git a/crates/external_services/Cargo.toml b/crates/external_services/Cargo.tomlindex 34aca99f39..4002e117c6 100644--- a/crates/external_services/Cargo.toml+++ b/crates/external_services/Cargo.toml@@ -48,9 +48,9 @@ thiserror = "1.0.69"vaultrs = { version = "0.7.4", optional = true }prost = { version = "0.13", optional = true }tokio = "1.45.1"-tonic = { version = "0.12.3", optional = true }-tonic-reflection = { version = "0.12.3", optional = true }-tonic-types = { version = "0.12.3", optional = true }+tonic = { version = "0.13.1", optional = true }+tonic-reflection = { version = "0.13.1", optional = true }+tonic-types = { version = "0.13.1", optional = true }hyper-util = { version = "0.1.12", optional = true }http-body-util = { version = "0.1.3", optional = true }reqwest = { version = "0.11.27", features = ["rustls-tls"] }@@ -71,7 +71,7 @@ api_models = { version = "0.1.0", path = "../api_models", optional = true }[build-dependencies]-tonic-build = { version = "0.12", optional = true }+tonic-build = { version = "0.13.1", optional = true }router_env = { version = "0.1.0", path = "../router_env", default-features = false, optional = true }[lints]diff --git a/crates/external_services/build.rs b/crates/external_services/build.rsindex 8dba0bb3e9..c9d9017560 100644--- a/crates/external_services/build.rs+++ b/crates/external_services/build.rs@@ -14,7 +14,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {// Compile the .proto filetonic_build::configure().out_dir(out_dir)- .compile(+ .compile_protos(&[success_rate_proto_file,health_check_proto_file,diff --git a/crates/external_services/src/grpc_client.rs b/crates/external_services/src/grpc_client.rsindex 7a627d3ab2..45b98c5115 100644--- a/crates/external_services/src/grpc_client.rs+++ b/crates/external_services/src/grpc_client.rs@@ -13,20 +13,16 @@ use dynamic_routing::{DynamicRoutingClientConfig, RoutingStrategy};#[cfg(feature = "dynamic_routing")]use health_check_client::HealthCheckClient;#[cfg(feature = "dynamic_routing")]-use http_body_util::combinators::UnsyncBoxBody;-#[cfg(feature = "dynamic_routing")]-use hyper::body::Bytes;-#[cfg(feature = "dynamic_routing")]use hyper_util::client::legacy::connect::HttpConnector;#[cfg(feature = "dynamic_routing")]use router_env::logger;use serde;#[cfg(feature = "dynamic_routing")]-use tonic::Status;+use tonic::body::Body;#[cfg(feature = "dynamic_routing")]/// Hyper based Client type for maintaining connection pool for all gRPC services-pub type Client = hyper_util::client::legacy::Client<HttpConnector, UnsyncBoxBody<Bytes, Status>>;+pub type Client = hyper_util::client::legacy::Client<HttpConnector, Body>;/// Struct contains all the gRPC Clients#[derive(Debug, Clone)]