-
Notifications
You must be signed in to change notification settings - Fork 8
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 "this is available only on feature X only" for docs? #38
Comments
I was unfamiliar with this, but it sounds like a great idea! I feel like the I2C functionality should be very visible. Semi-related to this and very simple too add: do we want to add I2C as some kind of key word in the |
I'm not sure I follow, actually. What do you mean by a key word? |
Referring to
Maybe we could add |
OH! Yeah, good catch. |
I changed them. I'm not sure it deserves it's own publish on crates.io, but it will be in the next one anyway. |
Great! Yeah, I feel like we can publish a patch-bump (to 0.2.1) when we've done more updates of docs, like what has been suggested in this issue. |
Yeah, I'm cool with that. |
Some crates, for example
tokio
andmlua
have "this is available only with feature X enabled" badge on some types/functions/macros. Since disabled by defaulti2c
module was added, it does not show in docs. Of course, there is a mention of such functionality so it won't disappear from docs completely, but I think adding API docs would be helpful for those who want to use it.More info on how it's done: https://stackoverflow.com/questions/61417452/how-to-get-a-feature-requirement-tag-in-the-documentation-generated-by-cargo-do
The text was updated successfully, but these errors were encountered: