-
Notifications
You must be signed in to change notification settings - Fork 121
Justification of html_root_url is missing nuance #229
Copy link
Copy link
Closed
Labels
T-libsRelevant to the libraries subteam, which will review and decide on the PR/issue.Relevant to the libraries subteam, which will review and decide on the PR/issue.amendmentAmendments to existing guidelinesAmendments to existing guidelinesdisposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.proposed-final-comment-periodProposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off.Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off.
Description
Activity
Metadata
Metadata
Assignees
Labels
T-libsRelevant to the libraries subteam, which will review and decide on the PR/issue.Relevant to the libraries subteam, which will review and decide on the PR/issue.amendmentAmendments to existing guidelinesAmendments to existing guidelinesdisposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.proposed-final-comment-periodProposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off.Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off.
cc #75, @dtolnay
From rust-cli/env_logger#185:
The scenario where this goes wrong (assuming you're the author of
env_loggerand not usinghtml_root_url) is:downstreamcrate usesenv_loggeras a dependencydownstreamre-exports or in some other way links toenv_loggerdownstreambuilds documentation locally withcargo doc --no-deps(without--extern-html-root-url, because in practice no one but docs.rs does that).Then the links to
env_loggerwill be broken. But there's a simple fix and the fix is to remove--no-deps. Is this really so common that it's worth recommending that library authors usehtml_root_url?Note that I'm hoping to fix this properly in cargo instead: rust-lang/cargo#8296