mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 13:05:59 +02:00
cargo-doc: add page (#3697)
Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
This commit is contained in:
parent
93f2e505de
commit
c8931b963e
1 changed files with 20 additions and 0 deletions
20
pages/common/cargo-doc.md
Normal file
20
pages/common/cargo-doc.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# 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}}`
|
Loading…
Add table
Reference in a new issue