Closed
Description
From rust-cli/env_logger#185:
The scenario where this goes wrong (assuming you're the author of env_logger
and not using html_root_url
) is:
- Another
downstream
crate usesenv_logger
as a dependency downstream
re-exports or in some other way links toenv_logger
- A user or developer of
downstream
builds 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_logger
will 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 use html_root_url
?
Note that I'm hoping to fix this properly in cargo instead: rust-lang/cargo#8296
Metadata
Metadata
Assignees
Labels
Relevant to the libraries subteam, which will review and decide on the PR/issue.Amendments to existing guidelinesThis issue / PR is in PFCP or FCP with a disposition to merge it.The final comment period is finished for this PR / Issue.Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off.