mcgoo / vcpkg-rs

Build library for finding native libraries in vcpkg for Rust - Windows (msvc), Linux and macOS
https://docs.rs/vcpkg
Apache License 2.0
108 stars 22 forks source link

Please provide example of how to use with overlay registries in Cargo.toml #60

Open FellowTraveler opened 6 months ago

FellowTraveler commented 6 months ago

Example of vcpkg-configuration.json below. How to use a setup like this with cargo-vcpkg in the Cargo.toml file?

% cat vcpkg-configuration.json 
{
    "default-registry": {
        "kind": "git",
        "repository": "https://github.com/microsoft/vcpkg",
        "baseline": "11ed79186fe850bd3a98cfbf1854514d2b3070a2"
    },
    "registries": [
        {
            "kind": "git",
            "repository": "https://github.com/REGISTRY_NUMBER_ONE/vcpkg-registry",
            "baseline": "eddf13fee1813c50542a5665e103ed144d451db2",
            "packages": ["libsodium", "libsecp256k1"]
        },
        {
            "kind": "git",
            "repository": "https://github.com/SECOND_REGISTRY_DIFFERENT_PLACE/vcpkg-registry",
            "baseline": "04305f55e7ffb8f8662ab1d05c34fd3a90cf7556",
            "packages": ["protobuf", "etc_you_get_the_idea"]
        }
    ]
}