Open
Description
One of the features of docs.rs is to show the source code in its UI, but rustdoc provides its own view of the source as well. This duplication is both confusing for the user, but also duplicates the amount of storage docs.rs uses to store source code.
It'd be nice to have a rustdoc flag (unstable is fine) like --source-code-base
, that prevents rustdoc from emitting the source pages on its own and replaces the [src]
links with links to the source code base. For example, with --source-code-base ../../crate/lazy_static/1.4.0/source
, the [src]
for lib.rs
would be ../../crate/lazy_static/1.4.0/source/src/lib.rs
, and rustdoc's own src page would be missing.