#build-dependencies #windows #macos #linux

build vcpkg

A library to find native dependencies in a vcpkg tree at build time in order to be used in Cargo build scripts

21 releases

0.2.10 Jun 10, 2020
0.2.8 Dec 2, 2019
0.2.7 Jun 30, 2019
0.2.6 Aug 21, 2018
0.2.2 Jun 15, 2017

#8 in Build Utils

Download history 51649/week @ 2020-03-16 53324/week @ 2020-03-23 55892/week @ 2020-03-30 55694/week @ 2020-04-06 59193/week @ 2020-04-13 60938/week @ 2020-04-20 58428/week @ 2020-04-27 57506/week @ 2020-05-04 63729/week @ 2020-05-11 57552/week @ 2020-05-18 58752/week @ 2020-05-25 66530/week @ 2020-06-01 69620/week @ 2020-06-08 63574/week @ 2020-06-15 60949/week @ 2020-06-22 55902/week @ 2020-06-29

246,409 downloads per month
Used in 3,079 crates (30 directly)

MIT/Apache

51KB
1K SLoC

vcpkg-rs Windows macOS Linux

Documentation Changelog

This is a helper for finding libraries in a Vcpkg installation from cargo build scripts. It works similarly to pkg-config. It works on Windows (MSVC ABI), Linux and MacOS.

Example

Find the library named foo in a Vcpkg installation and emit cargo metadata to link it:

// build.rs
fn main() {
    vcpkg::find_package("foo").unwrap();
}

See the crate documentation for more information.

License

See LICENSE-APACHE, and LICENSE-MIT for details.

No runtime deps