Crates.io | rust-netmap |
lib.rs | rust-netmap |
version | 0.0.7 |
source | src |
created_at | 2015-01-21 13:41:33.916136 |
updated_at | 2015-12-11 23:56:40.231265 |
description | Bindings to netmap - the fast packet I/O framework |
homepage | http://info.iet.unipi.it/~luigi/netmap/ |
repository | https://github.com/libpnet/rust-netmap |
max_upload_size | |
id | 845 |
size | 12,680 |
Rust bindings to netmap, currently at version 3.17 (Linux).
To use within your own project, add:
[dependencies.rust-netmap]
git = "https://github.com/libpnet/rust-netmap.git"
# Uncomment this line where you wish to use features guarded by the
# NETMAP_WITH_LIBS macro in C.
#features = "netmap_with_libs"
To your Cargo.toml.
If you get an error containing the message:
error: could not find native static library `rust_netmap_user`, perhaps an -L flag is missing?
You should check the following things:
build.rs
to use gcc instead (untested, but it should work)./usr/include/net/netmap.h
and
/usr/include/net/netmap_user.h
both exist. If they do not, you should
check your netmap installation. You can either manually add these files or
symlinks to the, or change the paths searched in build.rs
.cargo build -v
, your operating system and distribution,
how you installed netmap, and the output of clang -DNETMAP_WITH_LIBS -Dstatic= -Dinline= -x c -fPIC -O2 -c /usr/include/net/netmap_user.h -o $(mktemp)
.