Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use external dependency for cargo tools on windows #1105

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions QemuPkg/Binaries/cargo-make_ext_dep.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
##
# Downloads the exact version of cargo-make. This version should be the same version as that found in the
# rust-toolchain.toml file.
#
# Copyright (c) 2019, Microsoft Corporation
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
{
"scope": "global-win",
"type": "web",
"name": "cargo-make",
"source": "https://github.com/sagiegurari/cargo-make/releases/download/0.37.9/cargo-make-v0.37.9-x86_64-pc-windows-msvc.zip",
"version": "v0.37.9",
"sha256": "4d4c45546402e6edf387348f9e83281cc1415b0990c69a31a4462a81b43b8835",
"internal_path": "/",
"compression_type": "zip",
"flags": ["set_path"],
}
18 changes: 18 additions & 0 deletions QemuPkg/Binaries/cargo-tarpaulin_ext_dep.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
##
# Downloads the exact version of cargo-tarpaulin. This version should be the same version as that found in the
# rust-toolchain.toml file.
#
# Copyright (c) 2019, Microsoft Corporation
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
{
"scope": "global-win",
"type": "web",
"name": "cargo-tarpaulin",
"source": "https://github.com/xd009642/tarpaulin/releases/download/0.31.5/cargo-tarpaulin-x86_64-pc-windows-msvc.zip",
"version": "v0.31.5",
"sha256": "96d93282bcd9c8e52fbe1dab2dff023512f198b5f0cff375c2fbce12fd978c5e",
"internal_path": "/",
"compression_type": "zip",
"flags": ["set_path"],
}
4 changes: 4 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[toolchain]
channel = "1.80.0"

# For Windows, these tools are external dependencies found at QemuPkg/Binaries. If updating the version here, the
# version in QemuPkg/Binaries/README.md should also be updated.

# For Linux, these tools, come from the devcontainer found at .devcontainer/devcontainer.json.
[tools]
cargo-make = "0.37.9"
cargo-tarpaulin = "0.31.2"