26 releases
Uses old Rust 2015
0.2.15 | Jun 19, 2021 |
---|---|
0.2.13 | May 22, 2021 |
0.2.11 | Dec 10, 2020 |
0.2.10 | Jun 10, 2020 |
0.2.2 | Jun 15, 2017 |
#11 in Build Utils
6,749,917 downloads per month
Used in 10,734 crates
(80 directly)
230KB
2K
SLoC
vcpkg-rs
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. See cargo-vcpkg for a convenient way of creating a vcpkg installation.
License
See LICENSE-APACHE, and LICENSE-MIT for details.