← 返回命令列表

Linux command

rustup-doc 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Open Rust documentation

rustup doc

Open The Book

rustup doc --book

Open standard library docs

rustup doc --std

Open specific crate docs

rustup doc --core

说明

rustup doc opens local Rust documentation in the browser. Provides offline access to The Book, standard library, and reference documentation.

参数

--book
The Rust Programming Language.
--std
Standard library documentation.
--reference
The Rust Reference.
--core
Core library docs.
--alloc
Alloc library docs.
--path
Print path instead of opening.

FAQ

What is the rustup-doc command used for?

rustup doc opens local Rust documentation in the browser. Provides offline access to The Book, standard library, and reference documentation.

How do I run a basic rustup-doc example?

Run `rustup doc` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --book do in rustup-doc?

The Rust Programming Language.