Skip to content

Commit 85edb5e

Browse files
Merge #277
277: Add `--generate-link-to-definition` option when building on docs.rs r=cuviper a=GuillaumeGomez This option generates links in source code pages, allowing to jump to definition and to jump back to doc. It makes browsing the source code pages much nicer. You can see it in action [here](https://doc.rust-lang.org/stable/nightly-rustc/src/rustc_middle/lib.rs.html#90). Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
2 parents f4db632 + 878df73 commit 85edb5e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ rust-version = "1.31"
1717

1818
[package.metadata.docs.rs]
1919
features = ["std"]
20+
rustdoc-args = ["--generate-link-to-definition"]
2021

2122
[dependencies]
2223
libm = { version = "0.2.0", optional = true }

0 commit comments

Comments
 (0)