-
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
Missing docs for procedural macro crate #422
Comments
This is a bug in docs.rs, working on a fix. |
That patch didn't fix it, investigating a bit more. |
Something seams changed now: Now not a library message is replaced bi doesn't have any documentation. |
No, that will still happen. The bug is that cargo will always emit docs for proc-macro crates into |
@QuietMisdreavus Ok... fine and thanks! |
Are there workarounds for this bug? No proc macro docs can currently be published, right? |
Leaving bugs like this unfixed for a month gives a bad look to docs.rs. Is it possible for you to roll back to the previous toolchain that you used which didn't have this issue? (Yes I know it's a free service, and if I don't like it I can host the docs myself. I'm not complaining.) |
No, the old build environment is not present on the server anymore. Even if the it was still present we wouldn't roll back to it, as it lacked many sandboxing features introduced in the new one. |
So the issue is with the new build environment, not a toolchain update? Does that mean the new environment was not tested with (at least) proc macro crates before it was deployed? |
Yep. The new build environment exposed a Cargo bug (#422 (comment)), and I'm not sure whether @QuietMisdreavus wants to work around it on docs.rs itself first or fix it upstream directly.
Unfortunately we forgot to test with proc macro crates before deploying, yes :( |
Okay, thank you. I hope docs WG can establish a release process so that it doesn't happen again :) |
@QuietMisdreavus I wasn't able to find the ticket in cargo repo. I would like to try to help on it because this issue is blocking for lot of procedural macro crate: Who know this issue wait on this fix to publish his crate, but who don't know just give the feels to his peers that he doesn't care about documentations: that's just sad. If the fix of this issue is far away to come we should find some kind of workaround to it. A message that link this issue to the page where the docs is missing should be the minimal bit to alleviate the problem. |
My crate metropolis seems to have a similar problem as well: |
@GuyL99 My guess is no... your crate isn't a procedural macro crate (this issue is just about procedural macro crates). Maybe you hit some limits or try to access to external resource: take a look to https://docs.rs/about |
@QuietMisdreavus do you know if there's an issue open for rustdoc about this? If not I can open one. Separately, could we work around this in the meantime by looking in |
Use documentation in /target/doc if /target/$target/doc doesn't exist. Partially addresses rust-lang#422. Note: this does _not_ fix the issue mentioned above, it doesn't link to the right CSS files. See https://cdn.discordapp.com/attachments/541978667522195476/649031211913838592/unknown.png for an example.
I’m currently hitting this bug with my crate bae. Is there any possible workaround? |
@davidpdrsn not for proc-macro authors, no. I have a work-around on our end in #491, but @QuietMisdreavus wants to fix the upstream bug (rust-lang/rust#66796) first. |
For everyone who's been impacted: This has been fixed but the fix has not yet been deployed. Once it has (hopefully sometime next week), I'll comment again and you can publish your docs by publishing a new patch version of your crate. |
@pietroalbini can you also rebuild tokio-macros 0.2.0? cc @pickfire , #420 (comment) |
Queued tokio-macros 0.2.0. |
Could you please also rebuild |
Queued. |
Would it be possible to rebuild |
@CreepySkeleton queued and rebuilt! https://docs.rs/derive_builder/0.9.0/derive_builder/ |
Could you please rebuild |
@theypsilon arraygen succeded the first time it was built, there's no need to build it again: https://docs.rs/arraygen/0.1.12/arraygen/ |
It didn't generate all the doc blocks though: https://github.com/theypsilon/arraygen/blob/master/src/lib.rs It was one of the first days after it started generating docs again, so maybe there was a problem at that time. |
This doesn't sound related the bug in this issue. Can you open a new issue with more details? |
I noted this behavior yesterday (2019/10/3). After published last version of a crate of mine (
rstest
) I took a look to crate.io to check everything.Doc link exists https://docs.rs/crate/rstest/0.4.0 but just page is marked as not a library and Doc tab is missed.
I took a look to other procedural macro crates published in the last days and all have the same issue.
I missed something?
Thanks
The text was updated successfully, but these errors were encountered: