https://github.com/mcgoo/vcpkg-rs
Build library for finding native libraries in vcpkg for Rust - Windows (msvc), Linux and macOS
https://github.com/mcgoo/vcpkg-rs
cargo rust vcpkg
Last synced: 9 days ago
JSON representation
Build library for finding native libraries in vcpkg for Rust - Windows (msvc), Linux and macOS
- Host: GitHub
- URL: https://github.com/mcgoo/vcpkg-rs
- Owner: mcgoo
- License: apache-2.0
- Created: 2017-04-20T16:02:00.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-02-01T16:35:21.000Z (3 months ago)
- Last Synced: 2025-03-30T20:07:52.682Z (23 days ago)
- Topics: cargo, rust, vcpkg
- Language: Rust
- Homepage: https://docs.rs/vcpkg
- Size: 443 KB
- Stars: 108
- Watchers: 4
- Forks: 23
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# vcpkg-rs [](https://github.com/mcgoo/vcpkg-rs/actions?query=workflow%3AWindows) [](https://github.com/mcgoo/vcpkg-rs/actions?query=workflow%3AmacOS) [](https://github.com/mcgoo/vcpkg-rs/actions?query=workflow%3ALinux) [](https://github.com/mcgoo/vcpkg-rs/actions?query=workflow%3AWASM)
[Documentation](https://docs.rs/vcpkg) [Changelog](CHANGELOG.md)
This is a helper for finding libraries in a [Vcpkg](https://github.com/Microsoft/vcpkg) installation from cargo build scripts. It works similarly to [pkg-config](https://github.com/alexcrichton/pkg-config-rs). It works on Windows (MSVC ABI), Linux and MacOS.
## Example
Find the library named `foo` in a [Vcpkg](https://github.com/Microsoft/vcpkg) installation and emit cargo metadata to link it:
```rust
// build.rs
fn main() {
vcpkg::find_package("foo").unwrap();
}
```See the crate [documentation](https://docs.rs/vcpkg) for more information. See [cargo-vcpkg](https://crates.io/crates/cargo-vcpkg) for a convenient way of creating a vcpkg installation.
## License
See LICENSE-APACHE, and LICENSE-MIT for details.