Running rustup target add thumbv7em-none-eabihf gives the following error:
info: downloading component 'rust-std' for 'thumbv7em-none-eabihf'
error: component download failed for rust-std-thumbv7em-none-eabihf: request or response body error: error reading a body from connection: end of file before message length reached
I have tried it on two machines, 1) WSL Ubuntu and 2) Raspberry Pi. Here's the output of rustup show
or in case the aws server is temporarily inaccessible, if you know any mirror sites, you can download from a mirror server, just set the RUSTUP_DIST_SERVER environment variable. for example:
$ # default server is static.rust-lang.org
$ export RUSTUP_DIST_SERVER=https://some-rust-mirror-server.example.com/
$ rustup target add thumbv7em-none-eabihf