mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
21 lines
504 B
Markdown
21 lines
504 B
Markdown
![]() |
# cargo doc
|
||
|
|
||
|
> Build and view Rust package documentation offline.
|
||
|
> More information: <https://doc.rust-lang.org/cargo/commands/cargo-doc.html>.
|
||
|
|
||
|
- Build and view the default package documentation in the browser:
|
||
|
|
||
|
`cargo doc --open`
|
||
|
|
||
|
- Build documentation without accessing the network:
|
||
|
|
||
|
`cargo doc --offline`
|
||
|
|
||
|
- View a particular package's documentation:
|
||
|
|
||
|
`cargo doc --open --package {{package}}`
|
||
|
|
||
|
- View a particular package's documentation offline:
|
||
|
|
||
|
`cargo doc --open --offline --package {{package}}`
|