Crates.io | vcpkg |
lib.rs | vcpkg |
version | 0.2.15 |
source | src |
created_at | 2017-04-20 21:35:56.630487 |
updated_at | 2021-06-19 16:35:46.573605 |
description | A library to find native dependencies in a vcpkg tree at build time in order to be used in Cargo build scripts. |
homepage | |
repository | https://github.com/mcgoo/vcpkg-rs |
max_upload_size | |
id | 11361 |
size | 2,480,880 |
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.
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.
See LICENSE-APACHE, and LICENSE-MIT for details.