Change:
- name: dist-aarch64-apple env: SCRIPT: "./x.py dist --stage 2" <del> RUST_CONFIGURE_ARGS: "--build=x86_64-apple-darwin --host=aarch64-apple-darwin --target=aarch64-apple-darwin --enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false" </del> <ins> RUST_CONFIGURE_ARGS: "--build=x86_64-apple-darwin --host=aarch64-apple-darwin --target=aarch64-apple-darwin --enable-full-tools --enable-sanitizers --enable-profiler --disable-docs --set rust.jemalloc --set llvm.ninja=false" </ins> RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 USE_XCODE_CLANG: 1 MACOSX_DEPLOYMENT_TARGET: 11.0

Discussion:
Problem I'm working in Rust on a Pinebook Pro running ARM64 Debian GNU/Linux. I've been Rusty for a few years now, and one of my favorite features is the extensive offline documentation. However, on this computer: gives an error message instead of documentation; the documentation doesn't appear to be present; and attempts to explicitly install the documentation have all failed. Steps Rust the usual way on ARM64 Linux (pipe a shell) (it fails) (it fails) (it fails) I installed Rust about a month ago and noticed the lack of documentation then, it's only now that it's become a major problem for me. I attempted steps 2-4 just now after , rather than after a completely fresh install. Notes Output of : Output of : Output of (even though rust-lang/rustup should be in effect?): Output of :
I can confirm the behaviour you're stating - that aarch64-unknown-linux-gnu lacks the component. The stable channel is only offering for the tier one platforms right now. I'm not sure if that's intentional, but it's not 's fault.
I'm not sure whose responsibility it is to decide which platforms get the component offered to them, but clearly would like them available on aarch64 linux.
This issue is not ARM only, of all non tier1 platforms is disable on dist CI builders in If the the documentations have no difference on each linux target, we can let download from EDIT A workaround is install a toolchain in rustup and create a soft link in
Given the relatively low demand for non-tier-1 doc packages, I would be happy if rustup were just a little smarter about this. Ideally, ought to say something like "documentation is not built for non-tier-1 targets". Perhaps it could also be extended to automatically download and use the documentation for an "equivalent" tier 1 platform, or maybe to steer the user toward instructions for building their own documentation package.
In theory, if the channel manifest were extended to contain enough information for rustup to know that then sure it'd be possible. However platforms move between tiers of support without necessarily needing to be involved so it wouldn't be part of itself. If you make that link, there's the possibility will get confused in the future, just to warn you.

I don't understand, why not just build all the documentation (rustdoc & the books) once and then share it between all triples? I guess documentation is same for all architectures.
There are differences. The big one I know about is CPU-specific inlines for SIMD and such. 's size also differs between 32- and 64-bit architectures. Both of these are reflected in the documentation.
A year later, with Apple M1 bringing ARM to more developer's desktops, this is a more pressing issue.
At some point in the last year, became a tier 1 platform, which would have solved this problem for me personally, but not for people on other platforms that are still tier 2 or more. But now, against everyone's predictions, I find myself using an machine. Which is tier 2. Which means I'm in the same boat again. Heh. I assume it's not an easy process to just build the docs myself on my own machine?