-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Building docs for tokio panics #9274
Labels
C-bug
Category: bug
Comments
ehuss
pushed a commit
to ehuss/cargo
that referenced
this issue
Mar 16, 2021
…excrichton Fix doc duplicate removal of root units. The doc collision removal code didn't consider the possibility that there was a collision with a root unit. This caused problems in conjunction with rust-lang#9142 where cargo would panic because a root unit got removed from the graph because of a filename collision. The solution here is to avoid removing root units during the doc collision sweep. This has a downside that this reintroduces a filename collision. An alternate solution would be to make the set of root units mutable, and remove from that list, but I figured this is simpler and more conservative. Fixes rust-lang#9274
hds
added a commit
to tokio-rs/tokio
that referenced
this issue
Aug 23, 2022
The command to build the documentation locally provided in the Contribution Guide did not work for all crates in the project workspace. Specifically, to build the docs for `tokio-stream` the flag `--cfg docsrs` needs to be in the environment variable `RUSTFLAGS` in addition to being in `RUSTDOCFLAGS`. Additionally, there was text describing that the docs cannot be built from the root of the workspace with a link to rust-lang/cargo#9274. That issue has since been closed as complete and the listed commands do now work from the root of the workspace. As such, that text has been removed.
hds
added a commit
to tokio-rs/tokio
that referenced
this issue
Aug 24, 2022
The command to build the documentation locally provided in the Contribution Guide did not work for all crates in the project workspace. Specifically, to build the docs for `tokio-stream` the flag `--cfg docsrs` needs to be in the environment variable `RUSTFLAGS` in addition to being in `RUSTDOCFLAGS`. Additionally, there was text describing that the docs cannot be built from the root of the workspace with a link to rust-lang/cargo#9274. That issue has since been closed as complete and the listed commands do now work from the root of the workspace. As such, that text has been removed.
Darksonn
pushed a commit
to tokio-rs/tokio
that referenced
this issue
Aug 24, 2022
The command to build the documentation locally provided in the Contribution Guide did not work for all crates in the project workspace. Specifically, to build the docs for `tokio-stream` the flag `--cfg docsrs` needs to be in the environment variable `RUSTFLAGS` in addition to being in `RUSTDOCFLAGS`. Additionally, there was text describing that the docs cannot be built from the root of the workspace with a link to rust-lang/cargo#9274. That issue has since been closed as complete and the listed commands do now work from the root of the workspace. As such, that text has been removed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
Building the docs for tokio in the root of the workspace panics.
It works if run from a subdirectory:
Steps
git clone https://github.com/tokio-rs/tokio
cd tokio
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features
Notes
Output of
cargo version
:Tested on macOS 10.15.7.
The text was updated successfully, but these errors were encountered: