-
Notifications
You must be signed in to change notification settings - Fork 94
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
docs.rs failing to compile dependent crate #240
Comments
Looks like we're taking this branch in the We'll probably get a linker error if we look at |
@spadarian can you add [package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"] to your manifest? |
I will give that a try tomorrow. Is there a way of checking if that works locally? I guess I can use their docker container... Just to confirm... not |
I also have the same problem in The previous version of the crate (which used gdal 0.7.2) did build successfully: https://docs.rs/crate/rasters/0.6.2 . Upgrading to latest, broke docs. For reference, snippet from the build-logs:
The section above the EDIT: add details on docs build failure |
I seem to have added Intersetingly, even the previous version that did build successfully on docs.rs now fails when tried locally. It suggests that this may be a bug in the docs.rs build process. |
Apparently, the guys from docs.rs have reported a bug in cargo, which is still blocked on rust-lang/cargo#10206 |
The cargo issue above seems to be fixed now; should it work now? |
I tried locally and it still fails... |
i think we had that issue before... maybe docs.rs needs some time to update |
The cargo issue is fixed but docs.rs may also need to fix things (ref. rust-lang/docs.rs#1580 , rust-lang/docs.rs#1591). |
Builds are still failing (https://docs.rs/crate/geozero/0.9.5-beta1/builds/597082) |
I noticed this fix in |
It wouldn't work. The compiler would try to compile both branches of the if statement (checking for |
@spadarian @pka can you check your gdal-dependent crates and verify the docs do build? I checked rasters.rs locally and it builds; it doesn't even seem to need the |
docs.rs build for geozero is working again, thanks! |
It works locally for my crate as well. I also removed the `rustc-args`
configuration.
Thanks for solving it!
…On Mon, 5 Sept 2022 at 06:01, Pirmin Kalberer ***@***.***> wrote:
docs.rs build for geozero is working again, thanks!
—
Reply to this email directly, view it on GitHub
<#240 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACXIKSZD525LQHGGZLCMOTV4T5YNANCNFSM5LYAQBNA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Great! Closing this as completed. |
Hello everyone. I hope you are having a good start to the year.
I'm having problems compiling the docs for my crate (map-engine) probably because docs.rs' build system doesn't have GDAL installed.
I saw that you guys have a custom build script that mentions a similar (?) problem. I was hoping that docs.rs would execute that and that everything would work 😄
I also noticed that many of the crates that depend on gdal (not as a development dependency) have the same problem.
Do you have any recommendations on how to deal with this?
For future reference, I also created an issue on their repo: rust-lang/docs.rs#1591
Thanks
The text was updated successfully, but these errors were encountered: