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

Enable all-features when docs.rs builds the crate. #15

Merged
merged 1 commit into from
Aug 1, 2020

Conversation

tikue
Copy link
Contributor

@tikue tikue commented Aug 1, 2020

Without all-features, none of the formats end up being documented.

Additionally:

  • Use the cfg option doc rather than feature docs, which I don't believe exists.
  • Disable doc(cfg(...)) on the formats module, because rustdoc appears
    to have a bug that causes all the items within the module to inherit
    this doc attribute rather than using the doc attributes on their
    immediate definitions.

Without all-features, none of the formats end up being documented.

Additionally:

- Use the cfg option doc rather than feature docs, which I don't believe exists.
- Disable `doc(cfg(...))` on the `formats` module, because rustdoc appears
  to have a bug that causes all the items within the module to inherit
  this doc attribute rather than using the doc attributes on their
  immediate definitions.

Tested with `RUSTDOCFLAGS="--cfg docsrs" cargo doc --all-features --open`
@vorot93 vorot93 merged commit 58982e2 into carllerche:master Aug 1, 2020
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.

2 participants