Cargo Features

[dependencies]
pnet = { version = "0.35.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

netmap

Enables netmap and netmap_sys of pnet_datalink

pcap

Enables pcap of pnet_datalink

appveyor travis
serde

Enables serde of pnet_base and optional pnet_datalink

benchmark

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