-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intra-doc links that rely on dev-dependencies don't work #1783
Comments
dev-dependencies are never active when building docs. What may be happening to make your local doc build work is intra-workspace feature leakage; one of your other crates activates a feature that then allows the links to resolve. If I delete the workspace |
Ok, no, somehow the dev-dependencies features are getting activated when it is in a workspace. This seems like some kind of cargo bug. |
I thought intra-workspace feature leakage would only affect So if this is expected behavior, is there a suggested workaround? I guess we could declare a |
Yeah, that's what I would probably do. |
Alright. Are you going to report this weird behavior to Cargo? If yes, can you then link it here? If not I'll work on making a small repro so I know I understand the problem and raise a bug report myself some time soon. In any case, there doesn't seem to be anything to track here. |
Reported in rust-lang/cargo#10909 |
And relevant upstream issue to improve the support for this: rust-lang/cargo#8905 |
This section of axum's documentation contains a bunch of broken intra-doc links, mostly to
tower-http
(bug report). It looks like the culprit here is that somehow, dev-dependencies are excluded when docs.rs builds the docs, which means that most oftower-http
's features aren't activated, so the modules we want to link to don't exist and rustdoc just inserts the intra-doc link verbatim.The text was updated successfully, but these errors were encountered: