Cargo Features
pcap_on_demand has no features set by default.
[dependencies]
pcap_on_demand = { version = "0.1.3", features = ["pcap-savefile-append", "pcap-fopen-offline-precision", "tokio", "full", "clippy"] }
- pcap-savefile-append full?
-
This feature enables access to the function Capture::savefile_append.
This is disabled by default, because it depends on a relatively recent version of libpcap (1.7.2). - pcap-fopen-offline-precision full?
-
This feature enables access to the function Capture::from_raw_fd_with_precision.
This is disabled by default, because it requires libpcap >= 1.5.0. - tokio full? = futures, mio, tokio-core
-
This feature enables access to the function Capture::stream.
This is disabled by default, because it depends on a tokio and mioAffects
pcap_on_demand::tokio
… - full = pcap-fopen-offline-precision, pcap-savefile-append, tokio
-
A shortcut to enable all features.
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.
- clippy implicit feature
-
Enables clippy
clippy:
A bunch of helpful lints to avoid common pitfalls in Rust
- mio tokio?
-
Enables mio ^0.6
- tokio-core tokio?
- futures tokio?
-
Enables futures ^0.1