| Crates.io | dpdk-net |
| lib.rs | dpdk-net |
| version | 0.1.0 |
| created_at | 2026-01-18 23:20:32.461498+00 |
| updated_at | 2026-01-18 23:20:32.461498+00 |
| description | DPDK networking (with tokio) |
| homepage | |
| repository | https://github.com/youyuanwu/rust-dpdk-net |
| max_upload_size | |
| id | 2053299 |
| size | 101,366 |
dpdk for Rust (with tokio).
dpdk-net aims to provide high level dpdk api like those in std::net and tokio::net
Supports TcpListener and TcpStream with tokio async adaptors.
Install dpdk. (From pkg manager or from src)
This repo install dpdk from source with cmake commands:
# clone this repo.
cmake -S . -B build
cmake --build build --target dpdk_configure
cmake --build build --target dpdk_build --parallel
sudo cmake --build build --target dpdk_install
Add to cargo.toml
dpdk-net = "*"
Run simple code like in the example
fn main(){
use dpdk_net::api::rte::eal::EalBuilder;
// Initialize DPDK EAL with PCI device
let _eal = EalBuilder::new()
.init()
.expect("Failed to initialize EAL");
// ...
}
rust-dpdk for binding generation. rpkt
MIT