Allow rustdoc to generate noindex meta tags for a library #41882
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-dev-tools
Relevant to the dev-tools subteam, which will review and decide on the PR/issue.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
There's currently a problem that when searching for the documentation of a crate in any search engine, chances are you find the documentation of a different project that publishes their full documentation along with all dependencies.
To avoid that, allow rustdoc to generate the following meta tag for all documentation of a library:
This makes most crawlers not index the page. The feature could be implemented behind a flag.
rel="canonical" would be preferably, but the correct URL is hard to derive.
The text was updated successfully, but these errors were encountered: