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

cargo doc --all does not document proc macro crates if target is explicitly specified #62940

Closed
leo60228 opened this issue Jul 24, 2019 · 2 comments
Labels
A-cross Area: Cross compilation A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@leo60228
Copy link
Contributor

leo60228 commented Jul 24, 2019

If a target is explicitly specified on the command line, even if it is the same target as the host, then proc macro crates will not be documented by cargo doc --all. When a cargo configuration file is used to set a default target for cross-compliation, this can prevent documenting proc macro crates at all.

Minimal testcase: https://github.com/leo60228/minimal_testcase

[leo60228@leotop2:~/minimal_testcase]$ rustc --version --verbose
rustc 1.38.0-nightly (273f42b59 2019-07-21)
binary: rustc
commit-hash: 273f42b5964c29dda2c5a349dd4655529767b07f
commit-date: 2019-07-21
host: x86_64-unknown-linux-gnu
release: 1.38.0-nightly
LLVM version: 9.0
@jonas-schievink jonas-schievink added A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. C-bug Category: This is a bug. A-cross Area: Cross compilation labels Aug 6, 2019
@jyn514
Copy link
Member

jyn514 commented Aug 25, 2020

Possible duplicate of rust-lang/cargo#7677

@ehuss
Copy link
Contributor

ehuss commented Sep 2, 2020

Yea, I'm going to close as I think this is mostly a cargo issue.

@ehuss ehuss closed this as completed Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cross Area: Cross compilation A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants