Skip to content
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: As implied by #5517 make sure everything still builds on docs.rs #5535

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

umgefahren
Copy link
Contributor

@umgefahren umgefahren commented Aug 6, 2024

Description

As @guillaumemichel already found out, passing the docsrs cfg to rustc now breaks the documentation build. Although I couldn't exactly reproduce the docs.rs build env (everyone is welcome to try; it's explained here) it's safe to assume that the same problem will occur when we push to docs.rs.

Passing the docsrs flag is also no longer required since it's now automatically passed to rustdoc when building on docs.rs. Explanation: https://docs.rs/about/builds#detecting-docsrs

Notes & open questions

None. (I'm pretty sure it will work on docs.rs)

Change checklist

  • I have performed a self-review of my own code

Copy link
Member

@jxs jxs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this Hannes! LGTM

@jxs jxs added the send-it label Aug 6, 2024
@mergify mergify bot merged commit 823acd6 into libp2p:master Aug 6, 2024
74 checks passed
@umgefahren umgefahren deleted the make-sure-builds-on-docsrs branch August 6, 2024 15:14
TimTinkers pushed a commit to unattended-backpack/rust-libp2p that referenced this pull request Sep 14, 2024
…docs.rs

As @guillaumemichel already found out, passing the `docsrs` cfg to rustc now breaks the documentation build. Although I couldn't exactly reproduce the docs.rs build env (everyone is welcome to try; it's explained [here](https://github.com/rust-lang/docs.rs/blob/master/README.md#build-subcommand)) it's safe to assume that the same problem will occur when we push to docs.rs.

Passing the docsrs flag is also no longer required since it's now automatically passed to rustdoc when building on docs.rs. Explanation: https://docs.rs/about/builds#detecting-docsrs

Pull-Request: libp2p#5535.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants