Closed
Description
I'm using rust 1.79.0 and can't find the win7 target
cargo build --release --target x86_64-win7-windows-msvc
:
warning: `C:\Users\GL\.cargo\config` is deprecated in favor of `config.toml`
note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
Compiling cfg-if v1.0.0
Compiling scopeguard v1.2.0
Compiling simd-adler32 v0.3.5
Compiling typenum v1.16.0
Compiling windows_x86_64_msvc v0.48.0
Compiling adler v1.0.2
Compiling memchr v2.5.0
Compiling subtle v2.5.0
Compiling crossbeam-epoch v0.9.15
Compiling libc v0.2.147
Compiling futures-core v0.3.28
Compiling memoffset v0.9.0
error[E0463]: can't find crate for `core`
|
= note: the `x86_64-win7-windows-msvc` target may not be installed
= help: consider downloading the target with `rustup target add x86_64-win7-windows-msvc`
For more information about this error, try `rustc --explain E0463`.
error: could not compile `adler` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `cfg-if` (lib) due to 1 previous error
error[E0463]: can't find crate for `std`
|
= note: the `x86_64-win7-windows-msvc` target may not be installed
= help: consider downloading the target with `rustup target add x86_64-win7-windows-msvc`
error: could not compile `subtle` (lib) due to 1 previous error
error: could not compile `libc` (lib) due to 1 previous error
error: could not compile `simd-adler32` (lib) due to 1 previous error
error: could not compile `scopeguard` (lib) due to 1 previous error
error: could not compile `typenum` (lib) due to 1 previous error
error: could not compile `memchr` (lib) due to 1 previous error
error: could not compile `windows_x86_64_msvc` (lib) due to 1 previous error
error: could not compile `memoffset` (lib) due to 1 previous error
error: could not compile `futures-core` (lib) due to 1 previous error
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
rustc --version
:
PS D:\code\py\mitmproxy_rs-0.2.2\ffi> rustc --version
rustc 1.79.0 (129f3b996 2024-06-10)
rustc --version --verbose
:
PS D:\code\py\mitmproxy_rs-0.2.2\ffi> rustc --version --verbose
rustc 1.79.0 (129f3b996 2024-06-10)
binary: rustc
commit-hash: 129f3b9964af4d4a709d1383930ade12dfe7c081
commit-date: 2024-06-10
host: x86_64-pc-windows-msvc
release: 1.79.0
LLVM version: 18.1.7