{"id":17602540,"url":"https://github.com/mcgoo/cargo-vcpkg","last_synced_at":"2025-06-23T05:05:34.874Z","repository":{"id":49487833,"uuid":"335119104","full_name":"mcgoo/cargo-vcpkg","owner":"mcgoo","description":"Get external dependencies in one step by specifying vcpkg details in Cargo.toml","archived":false,"fork":false,"pushed_at":"2024-06-14T07:58:02.000Z","size":435,"stargazers_count":44,"open_issues_count":8,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-16T22:37:57.804Z","etag":null,"topics":["cargo","rust","vcpkg"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcgoo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-02T00:06:48.000Z","updated_at":"2025-05-09T02:45:05.000Z","dependencies_parsed_at":"2024-10-22T22:58:02.018Z","dependency_job_id":null,"html_url":"https://github.com/mcgoo/cargo-vcpkg","commit_stats":{"total_commits":292,"total_committers":11,"mean_commits":"26.545454545454547","dds":"0.17123287671232879","last_synced_commit":"fb61cab7a02fdf25393181a6d445cb3c6d7749aa"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mcgoo/cargo-vcpkg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcgoo%2Fcargo-vcpkg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcgoo%2Fcargo-vcpkg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcgoo%2Fcargo-vcpkg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcgoo%2Fcargo-vcpkg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcgoo","download_url":"https://codeload.github.com/mcgoo/cargo-vcpkg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcgoo%2Fcargo-vcpkg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260640160,"owners_count":23040468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cargo","rust","vcpkg"],"created_at":"2024-10-22T13:08:42.579Z","updated_at":"2025-06-23T05:05:29.853Z","avatar_url":"https://github.com/mcgoo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cargo-vcpkg [![Windows](https://github.com/mcgoo/vcpkg-rs/workflows/Windows/badge.svg?branch=master)](https://github.com/mcgoo/vcpkg-rs/actions?query=workflow%3AWindows) [![macOS](https://github.com/mcgoo/vcpkg-rs/workflows/macOS/badge.svg?branch=master)](https://github.com/mcgoo/vcpkg-rs/actions?query=workflow%3AmacOS) [![Linux](https://github.com/mcgoo/vcpkg-rs/workflows/Linux/badge.svg?branch=master)](https://github.com/mcgoo/vcpkg-rs/actions?query=workflow%3ALinux)\n\n[Changelog](https://github.com/mcgoo/cargo-vcpkg/blob/master/CHANGELOG.md)\n\nThis command `cargo vcpkg` will create a [vcpkg](https://github.com/microsoft/vcpkg) tree and install the packages specified in `Cargo.toml` files in the crate being built and crates it depends on. Crates that use the [vcpkg crate](https://crates.io/crates/vcpkg) will be able to find libraries automatically.\n\n## Example\n\n```toml\n[package.metadata.vcpkg]\ngit = \"https://github.com/microsoft/vcpkg\"\nrev = \"4c1db68\"\ndependencies = [\"pkg1\", \"pkg2\"]\n```\n\n```\n$ cargo install cargo-vcpkg\n$ cargo vcpkg build\n    Fetching vcpkg\n    Checkout rev/tag/branch 4c1db68\n   Compiling pkg1, pkg2\n    Finished in 1.93s\n$ cargo build\n[...]\n```\n\n## Per target configuration\n\nIt is also possible to install different sets of packages per target, and override the vcpkg triplet to install.\n\n```toml\n[package.metadata.vcpkg]\ngit = \"https://github.com/microsoft/vcpkg\"\nrev = \"4c1db68\"\ndependencies = [\"sdl2\"]\n\n[package.metadata.vcpkg.target]\nx86_64-apple-darwin = { dependencies = [\"sdl2\", \"sdl2-gfx\" ] }\nx86_64-unknown-linux-gnu = { dependencies = [\"sdl2\", \"opencv\"] }\nx86_64-pc-windows-msvc = { triplet = \"x64-windows-static\", dependencies = [\"sdl2\", \"zeromq\"] }\n```\n\n## Development dependencies\n\nSetting the `dev-dependencies` key allows building libraries that are required by binaries in this crate. Only the packages in the `dependencies` key will be installed if `cargo vcpkg` is run on a crate that depends on this crate.\n\n```toml\n[package.metadata.vcpkg]\ngit = \"https://github.com/microsoft/vcpkg\"\nrev = \"4c1db68\"\ndependencies = [\"sdl2\"]\ndev-dependencies = [\"sdl2-image\"]\n\n[package.metadata.vcpkg.target]\nx86_64-apple-darwin = { dev-dependencies = [\"sdl2-gfx\" ] }\n```\n\n## Overlay triplets\n\nSetting the `overlay-triplets-path` key allows you use custom [triplet files] in\nyour build. The value of this key should be the path to a directory containing\ntriplet files. These files will be made available during the vcpkg build through\nits `--overlay-triplets` argument.\n\n[triplet files]: https://vcpkg.readthedocs.io/en/latest/users/triplets/\n\n```toml\n[package.metadata.vcpkg]\ngit = \"https://github.com/microsoft/vcpkg\"\nrev = \"4c1db68\"\ndependencies = [\"sdl2\"]\noverlay-triplets-path = \"support/custom-triplets\"\n\n[package.metadata.vcpkg.target]\nx86_64-pc-windows-msvc = { triplet = \"x64-windows-static-release\" }\n```\n\nHere, the repository should contain a file named\n`support/custom-triplets/x64-windows-static-release.cmake`.\n\n## Installation\n\nInstall by running\n\n```\ncargo install cargo-vcpkg\n```\ncrates.io/vcpkg needs older Rust for compatibility with older projects, while cargo-vcpkg would like to track new versions for the latest features in Cargo.toml, hense the split of repos between components.\n\n## License\n\nSee LICENSE-APACHE, and LICENSE-MIT for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcgoo%2Fcargo-vcpkg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcgoo%2Fcargo-vcpkg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcgoo%2Fcargo-vcpkg/lists"}