Attempted to install the Win7 target (rust-lang/rust#118150) but failed:
> rustup target add x86_64-win7-windows-msvc
error: toolchain 'stable-x86_64-pc-windows-msvc' does not support target 'x86_64-win7-windows-msvc'
note: you can see a list of supported targets with `rustc --print=target-list`
note: if you are adding support for a new target to rustc itself, see https://rustc-dev-guide.rust-lang.org/building/new-target.html
This is due to currently *-win7-windows-msvc
is still Tier 3 and cannot be used in Rustup. For now, just install an old compiler:
rustup install 1.77.2
and then either run rustup override set 1.77.2-x86_64-pc-windows-msvc
or put rust-toolchain.toml
at the project root:
[toolchain]
channel = "1.77.2-x86_64-pc-windows-msvc"
https://www.microsoft.com/en-us/download/details.aspx?id=30679