From 9c1245ac159a8ea2bb662a3aec011daba642b3f8 Mon Sep 17 00:00:00 2001 From: iyzhang Date: Wed, 18 Feb 2026 11:27:26 -0800 Subject: [PATCH 1/2] Build: update toolchain config files --- dpdk_bindings/rust-toolchain | 1 - rust-toolchain | 1 - rust-toolchain.toml | 2 ++ src/collections/async_queue.rs | 4 ++-- src/lib.rs | 1 - xdp_bindings/rust-toolchain | 1 - 6 files changed, 4 insertions(+), 6 deletions(-) delete mode 120000 dpdk_bindings/rust-toolchain delete mode 100644 rust-toolchain create mode 100644 rust-toolchain.toml delete mode 120000 xdp_bindings/rust-toolchain diff --git a/dpdk_bindings/rust-toolchain b/dpdk_bindings/rust-toolchain deleted file mode 120000 index 9327ba403..000000000 --- a/dpdk_bindings/rust-toolchain +++ /dev/null @@ -1 +0,0 @@ -../rust-toolchain \ No newline at end of file diff --git a/rust-toolchain b/rust-toolchain deleted file mode 100644 index 1d251aef9..000000000 --- a/rust-toolchain +++ /dev/null @@ -1 +0,0 @@ -nightly-2025-02-17 diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 000000000..90bc80f41 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "nightly-2026-02-11" diff --git a/src/collections/async_queue.rs b/src/collections/async_queue.rs index be508093c..fc3ef95c1 100644 --- a/src/collections/async_queue.rs +++ b/src/collections/async_queue.rs @@ -93,12 +93,12 @@ impl AsyncQueue { } #[allow(unused)] - pub fn values(&self) -> Iter { + pub fn values(&self) -> Iter<'_, T> { self.queue.iter() } #[allow(unused)] - pub fn values_mut(&mut self) -> IterMut { + pub fn values_mut(&mut self) -> IterMut<'_, T> { self.queue.iter_mut() } diff --git a/src/lib.rs b/src/lib.rs index 2f6650f91..16573da28 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,6 @@ #![feature(test)] #![feature(allocator_api)] #![cfg_attr(target_os = "windows", feature(maybe_uninit_uninit_array))] -#![feature(hash_extract_if)] mod collections; pub mod inetstack; diff --git a/xdp_bindings/rust-toolchain b/xdp_bindings/rust-toolchain deleted file mode 120000 index 9327ba403..000000000 --- a/xdp_bindings/rust-toolchain +++ /dev/null @@ -1 +0,0 @@ -../rust-toolchain \ No newline at end of file From 89aaa5a00297203da66c99ecde8da9e695bb8478 Mon Sep 17 00:00:00 2001 From: iyzhang Date: Wed, 18 Feb 2026 11:55:39 -0800 Subject: [PATCH 2/2] build: removing unneeded compile options --- examples/tcp-close/main.rs | 2 -- examples/tcp-echo/main.rs | 2 -- examples/tcp-wait/main.rs | 2 -- 3 files changed, 6 deletions(-) diff --git a/examples/tcp-close/main.rs b/examples/tcp-close/main.rs index 7c11d64d7..0e3c408ba 100644 --- a/examples/tcp-close/main.rs +++ b/examples/tcp-close/main.rs @@ -2,8 +2,6 @@ // Licensed under the MIT license. #![deny(clippy::all)] -#![feature(extract_if)] -#![feature(hash_extract_if)] //====================================================================================================================== // Imports diff --git a/examples/tcp-echo/main.rs b/examples/tcp-echo/main.rs index 197820134..a40539c1a 100644 --- a/examples/tcp-echo/main.rs +++ b/examples/tcp-echo/main.rs @@ -2,8 +2,6 @@ // Licensed under the MIT license. #![deny(clippy::all)] -#![feature(extract_if)] -#![feature(hash_extract_if)] //====================================================================================================================== // Imports diff --git a/examples/tcp-wait/main.rs b/examples/tcp-wait/main.rs index 925e24892..bcad13115 100644 --- a/examples/tcp-wait/main.rs +++ b/examples/tcp-wait/main.rs @@ -2,8 +2,6 @@ // Licensed under the MIT license. #![deny(clippy::all)] -#![feature(extract_if)] -#![feature(hash_extract_if)] //====================================================================================================================== // Modules