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

Add --check option for cargo doc #10026

Closed

Conversation

GuillaumeGomez
Copy link
Member

This is a reopening of #8859.

The goal is to allow to run rustdoc --check directly from cargo (which was implemented in rust-lang/rust#78984). And the end goal would be to have rustdoc --check to be run when we use cargo check. For now, it only supports cargo doc --check.

Tracking issue: #10025

@rust-highfive
Copy link

r? @Eh2406

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 1, 2021
@GuillaumeGomez
Copy link
Member Author

I'm not sure to understand the error. Anyone has an idea what's wrong?

@GuillaumeGomez
Copy link
Member Author

r? @joshtriplett

@rust-highfive rust-highfive assigned joshtriplett and unassigned Eh2406 Nov 1, 2021
@ehuss
Copy link
Contributor

ehuss commented Nov 1, 2021

There is an issue with openssl 3 (#10013) which will hopefully be fixed soon.

@bors
Copy link
Contributor

bors commented Nov 4, 2021

☔ The latest upstream changes (presumably #10037) made this pull request unmergeable. Please resolve the merge conflicts.

@jyn514
Copy link
Member

jyn514 commented Nov 5, 2021

I think this should be check --doc, not doc --check. That allows it to be extended to check --doctests and check --all-targets in the future.

@Nemo157
Copy link
Member

Nemo157 commented Nov 5, 2021

There would be a little inconsistency between cargo test --doc and cargo check --doc if the latter checks the docs but not the doc-examples.

@Nemo157
Copy link
Member

Nemo157 commented Nov 5, 2021

(and for now this can already be used on nightly via cargo rustdoc -- --check -Z unstable-options)

@jyn514
Copy link
Member

jyn514 commented Nov 5, 2021

Sure - maybe it makes sense to hold off on this altogether until we implement rust-lang/rust#41574 ?

@ehuss
Copy link
Contributor

ehuss commented Nov 12, 2021

I agree with @jyn514 that I would lean towards having cargo check --doc instead of making this part of the doc command. That would be more consistent with the rest of cargo (there isn't a cargo build --check for example).

@ehuss ehuss removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 12, 2021
@ehuss
Copy link
Contributor

ehuss commented Dec 14, 2021

Just checking in to see what the status is here, it's not clear to me if this is waiting on any questions.

@GuillaumeGomez
Copy link
Member Author

I'm not sure either. I think we need to have a discussion before moving forward.

@ehuss
Copy link
Contributor

ehuss commented Mar 23, 2022

Closing due to inactivity. I think there is some design work that should probably be agreed upon before continuing here.

@ehuss ehuss closed this Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants