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

Unclear what feature flags are needed for API items #3095

Closed
2 tasks done
epage opened this issue Dec 8, 2021 · 2 comments · Fixed by #3101
Closed
2 tasks done

Unclear what feature flags are needed for API items #3095

epage opened this issue Dec 8, 2021 · 2 comments · Fixed by #3101
Labels
A-docs Area: documentation, including docs.rs, readme, examples, etc... C-bug Category: Updating dependencies

Comments

@epage
Copy link
Member

epage commented Dec 8, 2021

Please complete the following tasks

  • I have searched the discussions
  • I have searched the existing issues

Rust Version

rustc 1.55.0 (c8dfcfe04 2021-09-06)

Clap Version

v3.0.0-rc.0

Minimal reproducible code

N/A

Steps to reproduce the bug with the above code

See https://docs.rs/clap/3.0.0-rc.0/clap/macro.crate_authors.html

Actual Behaviour

Unclear you can't use it

Expected Behaviour

Tells about the feature flag

Additional Context

No response

Debug Output

No response

@epage epage added C-bug Category: Updating dependencies A-docs Area: documentation, including docs.rs, readme, examples, etc... labels Dec 8, 2021
@epage
Copy link
Member Author

epage commented Dec 8, 2021

Looks like there is a doc_auto_cfg attribute we can use, see rust-lang/rust#90502

@pksunkara
Copy link
Member

AFAIK, it was supposed to be automatically enabled. Not sure why they wanted a separate attribute to enable it.

epage added a commit to epage/clap that referenced this issue Dec 9, 2021
epage added a commit to epage/clap that referenced this issue Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: documentation, including docs.rs, readme, examples, etc... C-bug Category: Updating dependencies
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants