Skip to content

Cfgs from build script not passed to rustdoc #1980

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

Closed
gkoz opened this issue Sep 9, 2015 · 3 comments
Closed

Cfgs from build script not passed to rustdoc #1980

gkoz opened this issue Sep 9, 2015 · 3 comments

Comments

@gkoz
Copy link
Contributor

gkoz commented Sep 9, 2015

The cfg directives returned by the build script via the cargo:rustc-cfg=foo convention are not passed to rustdoc when invoking cargo doc.

rustdoc seems to accept them just fine i.e. invoking it manually with --cfg foo produces the expected results.

@alexcrichton
Copy link
Member

I think this is a dupe of #1277, but thanks for the report!

@gkoz
Copy link
Contributor Author

gkoz commented Sep 10, 2015

Not really. #1277 talks about features only (so a subset of cfg functionality). It appears to have been fixed back then.

@alexcrichton
Copy link
Member

Hm, good point. I could of sworn we had a few dupes for this issue, but I guess this one will now become the "one true issue"!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants