Description
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: rustup doc
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
- Install Rust the usual way on ARM64 Linux (pipe https://sh.rustup.rs into a shell)
- Try
rustup doc
(it fails) - Try
rustup component add rust-docs
(it fails) - Try
rustup component add --toolchain stable-aarch64-unknown-linux-gnu rust-docs
(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 rustup update
, rather than after a completely fresh install.
Notes
Output of rustup --version
: rustup 1.21.1 (7832b2ebe 2019-12-20)
Output of rustup show
:
Default host: aarch64-unknown-linux-gnu
rustup home: /home/sbizna/.rustup
installed toolchains
--------------------
stable-aarch64-unknown-linux-gnu
nightly-aarch64-unknown-linux-gnu
active toolchain
----------------
stable-aarch64-unknown-linux-gnu (default)
rustc 1.41.1 (f3e1a954d 2020-02-24)
Output of rustup doc
(even though rust-lang/rustup#2116 should be in effect?):
error: couldn't open browser
error: caused by: command 'xdg-open (internal)' did not execute successfully; ex
it code: 4
command stderr:
gio: file:///home/sbizna/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/sha
re/doc/rust/html/index.html: Error when getting information for file “/home/sbiz
na/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/share/doc/rust/html/index
.html”: No such file or directory
Output of rustup component add --toolchain stable-aarch64-unknown-linux-gnu rust-docs
:
error: toolchain 'stable-aarch64-unknown-linux-gnu' does not contain component '
rust-docs' for target 'aarch64-unknown-linux-gnu'