pcap-config 0.1.1

A library to run the pcap-config tool at build time to find the compiler flags for linking libpcap.
Documentation
  • Coverage
  • 75%
    6 out of 8 items documented1 out of 6 items with examples
  • Size
  • Source code size: 9.29 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.39 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • Documentation
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ryanq

pcap-config Build Status

A simple library designed to be used as a build dependency to determine the location and flags required to use libpcap from a Cargo project. Made because libpcap doesn't come with a pkg-config file and does include the pcap-config executable to accomplish the same goal. Inspired by alexcrichton/pkg-config-rs.

Each successful commit on master regenerates the documentation.

extern crate pcap_config;

fn main() {
    pcap_config::find_library().unwrap();
}