rust-dpdk
Rust bindings to DPDK, currently at version 17.11.
Requiement
perl
Building
At first, build and install DPDK as shared library.
tar xzvf dpdk-17.11.tar.gz
cd dpdk-17.11
echo CONFIG_RTE_BUILD_SHARED_LIB=y >> config/defconfig_x86_64-native-linuxapp-gcc
make T=x86_64-native-linuxapp-gcc config
make
sudo make install
NOTE: So far, we need nightly build of Rust to use #[thread_local] feature.
To generate the bindings from scratch, use:
cargo +nightly build
To use within your own project, use:
[dependencies.rust-dpdk]
git = "https://github.com/iMasaruOki/rust-dpdk.git"