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 wheneverpnet
is added without
somewhere in the dependency tree.default-features = false - std default = ipnetwork, pnet_datalink, pnet_sys, pnet_transport
-
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.