dpdk-net

Crates.iodpdk-net
lib.rsdpdk-net
version0.1.0
created_at2026-01-18 23:20:32.461498+00
updated_at2026-01-18 23:20:32.461498+00
descriptionDPDK networking (with tokio)
homepage
repositoryhttps://github.com/youyuanwu/rust-dpdk-net
max_upload_size
id2053299
size101,366
(youyuanwu)

documentation

https://github.com/youyuanwu/rust-dpdk-net

README

dpdk-net

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.

Get Started

  1. 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
    
  2. Add to cargo.toml

    dpdk-net = "*"
    
  3. 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");
      // ...
    }
    

Examples:

Reference Projects

rust-dpdk for binding generation. rpkt

License

MIT

Commit count: 31

cargo fmt