Expand description
A build dependency for Cargo projects to find the location and compiler flags for linking
against libpcap
using the pcap-config
utility.
This library uses the pcap-config
utility, which is installed with libpcap, to find the
location and compiler flags required by cargo for linking to libpcap. A Config
structure
provides a way to customize the options set for running pcap-config
.
If pcap-config
runs successfully, the Cargo metadata is printed to stdout.
§Examples
Using pcap-config
with the default options:
extern crate pcap_config;
fn main() {
pcap_config::find_library().unwrap();
}
Customizing how pcap-config
reports the metadata:
extern crate pcap_config;
fn main() {
pcap_config::Config::new().statik(true).find().unwrap();
}
Structs§
- A container for
pcap-config
configuration options.
Functions§
- Run
pcap-config
with default options.