[windows] When installing Rust, add the i686 target to enable building 32-bit binaries (#5116)

* [windows] When installing Rust, add the i686 target to enable building 32-bit binaries

* Move code so that rustup is on the path
This commit is contained in:
Alex Gaynor
2022-02-28 09:45:24 -05:00
committed by GitHub
parent b7e6ffd8d3
commit 305d2ef620

View File

@@ -19,6 +19,9 @@ Add-DefaultPathItem "%USERPROFILE%\.cargo\bin"
# Add Rust binaries to the path
$env:Path += ";$env:CARGO_HOME\bin"
# Add i686 target for building 32-bit binaries
rustup target add i686-pc-windows-msvc
# Install common tools
rustup component add rustfmt clippy
cargo install --locked bindgen cbindgen cargo-audit cargo-outdated