LinuxCommandLibrary

rustup-doc

Open the offline Rust documentation for the current toolchain.

TLDR

Open the main page

$ rustup doc
copy


Open the documentation for a specific topic (a module in the standard library, a type, a keyword, etc.)
$ rustup doc [std::fs|usize|fn|...]
copy


Open the Rust Programming Language book
$ rustup doc --book
copy


Open the Cargo book
$ rustup doc --cargo
copy


Open the Rust Reference
$ rustup doc --reference
copy

Copied to clipboard