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

Fix feature labels for docs.rs #138

Merged
merged 2 commits into from
Sep 3, 2020
Merged

Fix feature labels for docs.rs #138

merged 2 commits into from
Sep 3, 2020

Conversation

urschrei
Copy link
Member

@urschrei urschrei commented Sep 3, 2020

Copy link
Member

@michaelkirk michaelkirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Feel free to merge after addressing or declining my optional feedback.

@@ -1,3 +1,7 @@
// only enables the `doc_cfg` feature when
// the `docsrs` configuration attribute is defined
#[cfg_attr(docsrs, feature(doc_cfg))]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No biggie, so take it or leave it, but can we do this in a single place, like at src/lib.rs or does it need to be duplicated around?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea, but that would be better. I'll ask elsewhere…

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tokio does it in the crate root - so seems like it should work.

https://github.com/tokio-rs/tokio/blob/master/tokio/src/lib.rs#L18

@urschrei
Copy link
Member Author

urschrei commented Sep 3, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Sep 3, 2020

Build succeeded:

@bors bors bot merged commit 50f20a3 into georust:master Sep 3, 2020
@urschrei urschrei deleted the fix_docs branch September 3, 2020 21:01
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