Cargo Features

[dependencies]
pnet_datalink = { version = "0.35.0", default-features = false, features = ["std", "netmap", "pcap", "netmap_sys", "serde"] }
default = std

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

std default

Enables std of pnet_base

netmap

Affects pnet_datalink::netmap

Features from optional dependencies

pcap implicit feature

Enables pcap ^1.1.0

pcap:

A packet capture API around pcap/wpcap

Affects pnet_datalink::pcap

netmap_sys implicit feature

Enables netmap_sys

netmap_sys:

Bindings to netmap - the fast packet I/O framework

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework