Ctrl-click on symbols in docs.rs

I was looking for this coming from source.dot.net. It's a very useful feature where you can explore the source without cloning it locally, or as a workaround, using github.dev or github1s.com which works but it's only text-based.

--generate-link-to-definition perhaps? Or do you mean something else?

Yes, thanks. I guess it won't be deployed to docs.rs before it's final.

You can enable it for your own package. Docs.rs builds with nightly. I have seen some crates opt in. But old crates won't get rebuilt when new features are rolled out.

docs.rs disagrees:

We continuously rebuild the latest versions for all crates so they can benefit from new features in rustdoc.

Additionally, there is now an option to specifically request a rebuild, which you can find in the menus in the Versions tab at crates.io for your packages.

1 Like

Is a linkified version of std available somewhere? That's the crate where I miss this feature most.

Huh, that must be relatively new. I used to see pages that were clearly built way back, when rustdoc didn't have the current theme, but only some basic light theme.

2 Likes

It sadly doesn't compile yet :(. The feature is still experimental and enabling it for the standard library fails to build (I haven't dug into it, I think there's an open issue somewhere, I've tried it for https://std.noratrieb.dev).