From 1dac9b9f6bc5607f6a672b9b366afbb89d1f7ec0 Mon Sep 17 00:00:00 2001 From: Erik Bershel <110455084+erik-bershel@users.noreply.github.com> Date: Thu, 2 Nov 2023 15:56:35 +0100 Subject: [PATCH] [Windows] Pin bindgen cli version to avoid bug (#8713) --- images/win/scripts/Installers/Install-Rust.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/win/scripts/Installers/Install-Rust.ps1 b/images/win/scripts/Installers/Install-Rust.ps1 index 5778fd37..55eb4028 100644 --- a/images/win/scripts/Installers/Install-Rust.ps1 +++ b/images/win/scripts/Installers/Install-Rust.ps1 @@ -35,7 +35,8 @@ rustup target add x86_64-pc-windows-gnu # Install common tools rustup component add rustfmt clippy -cargo install --locked bindgen-cli cbindgen cargo-audit cargo-outdated +cargo install --locked bindgen-cli --version 0.68.1 # Temp fix for https://github.com/rust-lang/rust-bindgen/issues/2677 +cargo install --locked cbindgen cargo-audit cargo-outdated # Cleanup Cargo crates cache Remove-Item "${env:CARGO_HOME}\registry\*" -Recurse -Force