We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecc0106 commit eda1937Copy full SHA for eda1937
1 file changed
src/contrib-doc.md
@@ -21,12 +21,13 @@ To build all API documentation for all crates in the
21
[rust-random/rand](https://github.com/rust-random/rand) repository, run:
22
23
```sh
24
-# Build doc for all modules:
25
-cargo doc --all --no-deps
+# Optionally, enable some unstable but widely used doc features:
+export RUSTDOCFLAGS="--cfg docsrs -Zunstable-options --generate-link-to-definition"
26
27
-# And open it:
28
-xdg-open target/doc/rand/index.html
+# Build doc for all crates in the workspace:
+cargo doc --workspace --no-deps --all-features --open
29
```
30
+(Alternatively, check the `Cargo.toml` under `[package.metadata.docs.rs]` which may suggest workspace- or crate-specific configuration.)
31
32
On Linux, it is easy to set up automatic rebuilds after any edit:
33
0 commit comments