#build-dependencies #vcpkg #cargo-build #command-line-tool #cargo-metadata #utility #helper

build vcpkg_cli

A command line utility to investigate which libraries will be found by the vcpkg Cargo build helper

6 releases

Uses old Rust 2015

0.2.4 Dec 2, 2019
0.2.3 Aug 21, 2018
0.2.2 Jun 14, 2018
0.2.1 Jun 14, 2017
0.1.2 Apr 26, 2017

#639 in Build Utils

Download history 8/week @ 2024-07-22 42/week @ 2024-07-29 8/week @ 2024-08-26 30/week @ 2024-09-02 11/week @ 2024-09-09 34/week @ 2024-09-23 32/week @ 2024-09-30 10/week @ 2024-10-07 20/week @ 2024-10-14 20/week @ 2024-10-21 13/week @ 2024-10-28 14/week @ 2024-11-04

68 downloads per month

MIT/Apache

220KB
2K SLoC

vcpkg-rs Windows macOS Linux WASM

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. See cargo-vcpkg for a convenient way of creating a vcpkg installation.

License

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

Dependencies

~1.5MB
~24K SLoC