cargo-vcpkg-0.1.5 is not a library.
cargo-vcpkg
This command cargo vcpkg
will create a vcpkg tree and install the packages specified in Cargo.toml
files in the crate being built and crates it depends on.
Example
[]
= "https://github.com/microsoft/vcpkg"
= "4c1db68"
= ["pkg1", "pkg2"]
$ cargo install cargo-vcpkg
$ cargo vcpkg build
Fetching vcpkg
Checkout rev/tag/branch 4c1db68
Compiling pkg1, pkg2
Finished in 1.93s
$ cargo build
[...]
Per target configuration
It is also possible to install different sets of packages per target, and override the vcpkg triplet to install.
[]
= "https://github.com/microsoft/vcpkg"
= "4c1db68"
[]
= { = ["sdl2"] }
= { = ["sdl2"] }
= { = "x64-windows-static", = ["sdl2"] }
Installation
Install by running
cargo install cargo-vcpkg
License
See LICENSE-APACHE, and LICENSE-MIT for details.