Cargo Features

pnet = { version = "0.34.0", default-features = false, features = ["std", "netmap", "pcap", "travis", "serde", "benchmark"] }
default = std

The std feature is set by default whenever pnet is added without default-features = false somewhere in the dependency tree.

std default = ipnetwork, pnet_datalink, pnet_sys, pnet_transport

Enables std of pnet_base

Affects pnet::datalink, pnet::transport


Enables netmap and netmap_sys of pnet_datalink


Enables pcap of pnet_datalink

appveyor travis

Enables serde of pnet_base and optional pnet_datalink


Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

ipnetwork std
pnet_sys std
pnet_transport std