Skip to content

Fix feature labels for docs.rs#138

Merged
bors[bot] merged 2 commits intogeorust:masterfrom
urschrei:fix_docs
Sep 3, 2020
Merged

Fix feature labels for docs.rs#138
bors[bot] merged 2 commits intogeorust:masterfrom
urschrei:fix_docs

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