diff --git a/Cargo.lock b/Cargo.lock index c97fb091..61f3093a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -508,28 +508,6 @@ dependencies = [ "wasm-bindgen-futures", ] -[[package]] -name = "async-stream" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b5a71a6f37880a80d1d7f19efd781e4b5de42c88f0722cc13bcb6cc2cfe8476" -dependencies = [ - "async-stream-impl", - "futures-core", - "pin-project-lite", -] - -[[package]] -name = "async-stream-impl" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.100", -] - [[package]] name = "async-task" version = "4.7.1" @@ -573,40 +551,13 @@ dependencies = [ "url", ] -[[package]] -name = "axum" -version = "0.7.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edca88bc138befd0323b20752846e6587272d3b03b0343c8ea28a6f819e6e71f" -dependencies = [ - "async-trait", - "axum-core 0.4.5", - "bytes", - "futures-util", - "http 1.3.1", - "http-body 1.0.1", - "http-body-util", - "itoa", - "matchit 0.7.3", - "memchr", - "mime", - "percent-encoding", - "pin-project-lite", - "rustversion", - "serde", - "sync_wrapper", - "tower 0.5.2", - "tower-layer", - "tower-service", -] - [[package]] name = "axum" version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6d6fd624c75e18b3b4c6b9caf42b1afe24437daaee904069137d8bab077be8b8" dependencies = [ - "axum-core 0.5.0", + "axum-core", "bytes", "form_urlencoded", "futures-util", @@ -616,7 +567,7 @@ dependencies = [ "hyper 1.6.0", "hyper-util", "itoa", - "matchit 0.8.4", + "matchit", "memchr", "mime", "percent-encoding", @@ -628,32 +579,12 @@ dependencies = [ "serde_urlencoded", "sync_wrapper", "tokio", - "tower 0.5.2", + "tower", "tower-layer", "tower-service", "tracing", ] -[[package]] -name = "axum-core" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09f2bd6146b97ae3359fa0cc6d6b376d9539582c7b4220f041a33ec24c226199" -dependencies = [ - "async-trait", - "bytes", - "futures-util", - "http 1.3.1", - "http-body 1.0.1", - "http-body-util", - "mime", - "pin-project-lite", - "rustversion", - "sync_wrapper", - "tower-layer", - "tower-service", -] - [[package]] name = "axum-core" version = "0.5.0" @@ -907,7 +838,7 @@ dependencies = [ "async-recursion", "async-trait", "aws-sign-v4", - "axum 0.8.1", + "axum", "axum-server", "backend", "base64 0.22.1", @@ -981,8 +912,8 @@ dependencies = [ "tonic", "tonic-reflection", "tonic-web", - "tower 0.5.2", - "tower-http 0.6.2", + "tower", + "tower-http", "tracing", "tracing-subscriber", "urlencoding", @@ -2867,12 +2798,6 @@ dependencies = [ "thiserror 2.0.12", ] -[[package]] -name = "matchit" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" - [[package]] name = "matchit" version = "0.8.4" @@ -4030,7 +3955,7 @@ dependencies = [ "sync_wrapper", "tokio", "tokio-rustls 0.26.2", - "tower 0.5.2", + "tower", "tower-service", "url", "wasm-bindgen", @@ -5182,13 +5107,12 @@ dependencies = [ [[package]] name = "tonic" -version = "0.12.3" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "877c5b330756d856ffcc4553ab34a5684481ade925ecc54bcd1bf02b1d0d4d52" +checksum = "85839f0b32fd242bb3209262371d07feda6d780d16ee9d2bc88581b89da1549b" dependencies = [ - "async-stream", "async-trait", - "axum 0.7.9", + "axum", "base64 0.22.1", "bytes", "h2", @@ -5204,7 +5128,7 @@ dependencies = [ "socket2 0.5.8", "tokio", "tokio-stream", - "tower 0.4.13", + "tower", "tower-layer", "tower-service", "tracing", @@ -5212,9 +5136,9 @@ dependencies = [ [[package]] name = "tonic-build" -version = "0.12.3" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9557ce109ea773b399c9b9e5dca39294110b74f1f342cb347a80d1fce8c26a11" +checksum = "d85f0383fadd15609306383a90e85eaed44169f931a5d2be1b42c76ceff1825e" dependencies = [ "prettyplease", "proc-macro2", @@ -5226,9 +5150,9 @@ dependencies = [ [[package]] name = "tonic-reflection" -version = "0.12.3" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "878d81f52e7fcfd80026b7fdb6a9b578b3c3653ba987f87f0dce4b64043cba27" +checksum = "88fa815be858816dad226a49439ee90b7bcf81ab55bee72fdb217f1e6778c3ca" dependencies = [ "prost", "prost-types", @@ -5239,39 +5163,17 @@ dependencies = [ [[package]] name = "tonic-web" -version = "0.12.3" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5299dd20801ad736dccb4a5ea0da7376e59cd98f213bf1c3d478cf53f4834b58" +checksum = "ad8e4a5564e49598cbdefefb5b982c243b11009bdaf36ad59487c2253cb73379" dependencies = [ "base64 0.22.1", "bytes", "http 1.3.1", "http-body 1.0.1", - "http-body-util", "pin-project", "tokio-stream", "tonic", - "tower-http 0.5.2", - "tower-layer", - "tower-service", - "tracing", -] - -[[package]] -name = "tower" -version = "0.4.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" -dependencies = [ - "futures-core", - "futures-util", - "indexmap 1.9.3", - "pin-project", - "pin-project-lite", - "rand 0.8.5", - "slab", - "tokio", - "tokio-util", "tower-layer", "tower-service", "tracing", @@ -5285,30 +5187,17 @@ checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" dependencies = [ "futures-core", "futures-util", + "indexmap 2.8.0", "pin-project-lite", + "slab", "sync_wrapper", "tokio", + "tokio-util", "tower-layer", "tower-service", "tracing", ] -[[package]] -name = "tower-http" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e9cd434a998747dd2c4276bc96ee2e0c7a2eadf3cae88e52be55a05fa9053f5" -dependencies = [ - "bitflags 2.9.0", - "bytes", - "http 1.3.1", - "http-body 1.0.1", - "http-body-util", - "pin-project-lite", - "tower-layer", - "tower-service", -] - [[package]] name = "tower-http" version = "0.6.2" diff --git a/api/rust/Cargo.toml b/api/rust/Cargo.toml index f8a5b02d..133f4e59 100644 --- a/api/rust/Cargo.toml +++ b/api/rust/Cargo.toml @@ -19,7 +19,7 @@ prost-types = "0.13" hex = "0.4" rand = "0.9" - tonic = { version = "0.12", features = [ + tonic = { version = "0.13", features = [ "codegen", "prost", ], default-features = false, optional = true } @@ -29,7 +29,7 @@ serde = { version = "1.0", optional = true } [build-dependencies] - tonic-build = { version = "0.12", features = [ + tonic-build = { version = "0.13", features = [ "prost", ], default-features = false } pbjson-build = "0.7" diff --git a/chirpstack/Cargo.toml b/chirpstack/Cargo.toml index ce0af3e8..c4a91b73 100644 --- a/chirpstack/Cargo.toml +++ b/chirpstack/Cargo.toml @@ -78,9 +78,9 @@ ] } # gRPC and Protobuf - tonic = "0.12" - tonic-web = "0.12" - tonic-reflection = "0.12" + tonic = "0.13" + tonic-web = "0.13" + tonic-reflection = "0.13" tokio = { version = "1.44", features = ["macros", "rt-multi-thread"] } tokio-stream = "0.1" prost-types = "0.13" diff --git a/chirpstack/src/api/mod.rs b/chirpstack/src/api/mod.rs index 210557ec..c97f93ec 100644 --- a/chirpstack/src/api/mod.rs +++ b/chirpstack/src/api/mod.rs @@ -114,7 +114,7 @@ pub async fn setup() -> Result<()> { .route("/auth/oauth2/callback", get(oauth2::callback_handler)) .fallback(service_static_handler) .into_service() - .map_response(|r| r.map(tonic::body::boxed)); + .map_response(|r| r.map(tonic::body::Body::new)); let grpc = TonicServer::builder() .accept_http1(true) diff --git a/chirpstack/src/storage/tenant.rs b/chirpstack/src/storage/tenant.rs index b98abb66..77793fa9 100644 --- a/chirpstack/src/storage/tenant.rs +++ b/chirpstack/src/storage/tenant.rs @@ -325,7 +325,6 @@ pub mod test { use crate::storage::user::test::create_user; use crate::test; use chrono::SubsecRound; - use std::str::FromStr; use uuid::Uuid; struct FilterTest<'a> {