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

doc: correct cargo doc command in contrib guide #4933

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

hds
Copy link
Contributor

@hds hds commented Aug 23, 2022

Motivation

The command to build docs listed in the contribution guide was missing an
environment variable needed to build tokio-stream. Additionally it turns out
that there was outdated information about not being able to build docs from
the root of the workspace. After the resolution of rust-lang/cargo#9274, this
is not longer correct.

Solution

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 hds requested a review from Darksonn August 23, 2022 13:29
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 hds force-pushed the hds/contrib-guide-docs-command branch from bf312ce to a37f3c0 Compare August 24, 2022 10:30
@Darksonn Darksonn added the A-readme Area: Documentation that isn't part of any crate such as README.md or CONTRIBUTING.md label Aug 24, 2022
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

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

Thanks.

@Darksonn Darksonn merged commit c9d444e into master Aug 24, 2022
@Darksonn Darksonn deleted the hds/contrib-guide-docs-command branch August 24, 2022 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-readme Area: Documentation that isn't part of any crate such as README.md or CONTRIBUTING.md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants