From 4d5b4b1d39df491f6364d07293111548f5a7c057 Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Tue, 10 Nov 2026 13:13:40 +0000 Subject: [PATCH] feat(iroh): expose noq::SendStream::set_affinity (#4654) ## Description There is actually nothing to do for this. It is automatically available. This just pulls from the noq branch. It should point to noq main branch once it is merged there. ## API Changes - `SendStream::set_affinity` re-exported from noq ## Notes & open questions I'm not sure if this should get some extra iroh-specific docs or not? ## Change checklist - [ ] Self-review. - [ ] Documentation updates following the [style guide], if relevant. - [ ] Tests if relevant. - [ ] All API changes documented. - [ ] `cargo make` passes locally. [style guide]: https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text --------- Co-authored-by: ramfox --- Cargo.lock | 21 +++++++++------------ Cargo.toml | 5 +++++ deny.toml | 1 + iroh/Cargo.toml | 2 +- iroh/bench/Cargo.toml | 2 +- iroh/src/endpoint/quic.rs | 6 +++++- 6 files changed, 22 insertions(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 856ef00955..7765a4ce2e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2227,7 +2227,7 @@ dependencies = [ [[package]] name = "iroh" -version = "1.4.1" +version = "1.5.0" dependencies = [ "assert_matches", "axum", @@ -2318,7 +2318,7 @@ dependencies = [ [[package]] name = "iroh-bench" -version = "1.4.1" +version = "1.5.0" dependencies = [ "bytes", "clap", @@ -3173,9 +3173,8 @@ checksum = "38bf9645c8b145698bb0b18a4637dcacbc421ea49bef2317e4fd8065a387cf21" [[package]] name = "noq" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6249a065adc1edbc1704a95436f38dd60476064dbc3b7c47cf279e02d1590eb5" +version = "1.5.0" +source = "git+https://github.com/n0-computer/noq?branch=main#2f3ba68ab18329697a5c4b8330ff1e93fa1b78ce" dependencies = [ "bytes", "cfg_aliases", @@ -3195,9 +3194,8 @@ dependencies = [ [[package]] name = "noq-proto" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c01a35be3ed37558c8db69554419f24eff8a63599b54f711bbe3863ec727c47d" +version = "1.5.0" +source = "git+https://github.com/n0-computer/noq?branch=main#2f3ba68ab18329697a5c4b8330ff1e93fa1b78ce" dependencies = [ "aes-gcm", "aws-lc-rs", @@ -3226,9 +3224,8 @@ dependencies = [ [[package]] name = "noq-udp" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d0160422832eea1cc11c34be04ee6d5a046452b0b46cfb14695d55a1f24c954" +version = "1.5.0" +source = "git+https://github.com/n0-computer/noq?branch=main#2f3ba68ab18329697a5c4b8330ff1e93fa1b78ce" dependencies = [ "cfg_aliases", "libc", @@ -4872,7 +4869,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.4.3", + "getrandom 0.3.4", "once_cell", "rustix", "windows-sys 0.61.2", diff --git a/Cargo.toml b/Cargo.toml index 09b1ad20dd..43a8147d7c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,3 +58,8 @@ trait_method_marked_deprecated = { required-update = "minor" } type_associated_const_marked_deprecated = { required-update = "minor" } type_marked_deprecated = { required-update = "minor" } type_method_marked_deprecated = { required-update = "minor" } + +[patch.crates-io] +noq = { git = "https://github.com/n0-computer/noq", branch = "main" } +noq-proto = { git = "https://github.com/n0-computer/noq", branch = "main" } +noq-udp = { git = "https://github.com/n0-computer/noq", branch = "main" } diff --git a/deny.toml b/deny.toml index 6e17c48d85..3a7dbf20aa 100644 --- a/deny.toml +++ b/deny.toml @@ -28,4 +28,5 @@ ignore = [ [sources] allow-git = [ + "https://github.com/n0-computer/noq" ] diff --git a/iroh/Cargo.toml b/iroh/Cargo.toml index 3e89512581..b6b471bbf8 100644 --- a/iroh/Cargo.toml +++ b/iroh/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iroh" -version = "1.4.1" +version = "1.5.0" edition = "2024" readme = "README.md" description = "p2p quic connections dialed by public key" diff --git a/iroh/bench/Cargo.toml b/iroh/bench/Cargo.toml index a2f9cee0e8..1ac090d92a 100644 --- a/iroh/bench/Cargo.toml +++ b/iroh/bench/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iroh-bench" -version = "1.4.1" +version = "1.5.0" edition = "2024" license = "MIT OR Apache-2.0" publish = false diff --git a/iroh/src/endpoint/quic.rs b/iroh/src/endpoint/quic.rs index 2d98570e75..5bd9485e5e 100644 --- a/iroh/src/endpoint/quic.rs +++ b/iroh/src/endpoint/quic.rs @@ -10,7 +10,7 @@ use std::path::Path; use std::{sync::Arc, time::Duration}; -/// `noq` types that are used in the public iroh API. +// `noq` types that are used in the public iroh API. // Each type is notated with the iroh type or noq type that uses it. pub use noq::{ AcceptBi, // iroh::endpoint::Connection @@ -259,7 +259,11 @@ impl QuicTransportConfigBuilder { /// /// Disabling fairness can reduce fragmentation and protocol overhead for workloads that use /// many small streams. + #[deprecated( + note = "Send fairness is now always enabled. Neither enabling nor disabling it has an effect." + )] pub fn send_fairness(mut self, value: bool) -> Self { + #[allow(deprecated)] self.0.send_fairness(value); self }