This extension will take your locally generated project docs and display them in a new window for easier reference.
Version 4.0.0 may break any documentation generated using older cargo-doc implementations - tested on 1.72.0 toolchain
- Create the documentation using
cargo doc
inside of your project folder - Open the folder in VS Code
- Open the Command Palette
Ctrl+Shift+P
orCmd+Shift+P
- Search and activate
Rust: Doc Viewer
Open your rust docs and view them in another tab in VS Code
rustDocViewer.extraEnv
- Set additional evironment variables that will be set before invoking
cargo
commands (used to get project docs location) - Will merge with existing set of environment variables, overwriting overlapping variables
- A single object of key value pair(s)
- Set additional evironment variables that will be set before invoking
1.) No easy navigation
2.) Requires documentation to be in the standard output from `cargo docs`
3.) Testing and build automation