Expand description

This crate is a simple build dependency you can use in your build.rs scripts to compile and link against the Folly C++ library.

In theory, the pkg-config library would be all you need in order to locate Folly, because Folly is typically packed with a .pc file. In practice, that is insufficient, because the .pc file doesn’t fully describe all the dependencies that Folly has, and it has bugs. This crate knows about these idiosyncrasies and provides workarounds for them.

The following snippet should suffice for most use cases:

let folly = find_folly::probe_folly().unwrap();
let mut build = cc::Build::new();
... populate `build` ...
build.includes(&folly.include_paths);
for other_cflag in &folly.other_cflags {
    build.flag(other_cflag);
}

Structs

Information about the Folly library.

Enums

Functions