From c5c0c203655d13fc09afbf15b72c2821c19c479a Mon Sep 17 00:00:00 2001 From: Erik Bershel Date: Thu, 2 Nov 2023 10:38:34 +0100 Subject: [PATCH] [Windows] Pin bindgen cli version to avoid bug --- 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 5778fd37a914..55eb40289e23 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