From c58ad75e21f36f15bfecf677d589cfda89c43912 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Sat, 26 Sep 2026 11:44:45 -0700 Subject: [PATCH 1/3] feat(web-transport-moq)!: implement web-transport-trait 0.5 The trait's set_priority takes the i32 send order directly, matching noq's own scheduler, so the u8 widening goes away. Co-Authored-By: Claude Opus 5.5 --- web-transport-moq/Cargo.toml | 2 +- web-transport-moq/src/send.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web-transport-moq/Cargo.toml b/web-transport-moq/Cargo.toml index 657f2fc24..daf7856e7 100644 --- a/web-transport-moq/Cargo.toml +++ b/web-transport-moq/Cargo.toml @@ -49,7 +49,7 @@ tokio = { version = "1", default-features = false, features = [ tracing = "0.1" url = "2" web-transport-proto = "0.6" -web-transport-trait = "0.4" +web-transport-trait = "0.5" [dev-dependencies] anyhow = "1" diff --git a/web-transport-moq/src/send.rs b/web-transport-moq/src/send.rs index 0e67d64cf..0044b5380 100644 --- a/web-transport-moq/src/send.rs +++ b/web-transport-moq/src/send.rs @@ -156,8 +156,8 @@ impl tokio::io::AsyncWrite for SendStream { impl web_transport_trait::SendStream for SendStream { type Error = WriteError; - fn set_priority(&mut self, order: u8) { - Self::set_priority(self, order.into()).ok(); + fn set_priority(&mut self, order: i32) { + Self::set_priority(self, order).ok(); } fn reset(&mut self, code: u32) { From 60beafcc51d8a5ad8b724962bf9218c906710649 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Sat, 26 Sep 2026 12:23:18 -0700 Subject: [PATCH 2/3] feat(web-transport-moq)!: stop re-exporting web-transport-trait as generic Callers depend on web-transport-trait directly, so the trait version is theirs to pick rather than tied to this crate's. Co-Authored-By: Claude Opus 5.5 --- web-transport-moq/src/lib.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/web-transport-moq/src/lib.rs b/web-transport-moq/src/lib.rs index 576a94b56..e5f370649 100644 --- a/web-transport-moq/src/lib.rs +++ b/web-transport-moq/src/lib.rs @@ -67,8 +67,5 @@ pub use http; /// [`SessionAccept`]'s poll methods holds its place in the accept queue. pub use kio; -/// Re-export the generic WebTransport implementation. -pub use web_transport_trait as generic; - /// Re-export the WebTransport protocol implementation. pub use web_transport_proto as proto; From 4a58ec1e6c21f43dde10aea9c6941b3f5638869a Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Sun, 27 Sep 2026 16:31:49 -0700 Subject: [PATCH 3/3] chore(web-transport-moq): lock web-transport-trait 0.5.0 Co-Authored-By: Claude Opus 5.5 --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6e0b9335b..b09189917 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3569,9 +3569,9 @@ dependencies = [ [[package]] name = "web-transport-trait" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a916df726e858e8e6cc21e852129f59e6277d3a01bb2254c0506dcf829fdd5d" +checksum = "5f1e801f997864ab0074afb1c7d3262df46d5d9ad9b78274c47694544db2dba7" dependencies = [ "bytes", ]