-
Notifications
You must be signed in to change notification settings - Fork 254
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
generate docs for feature gated items #1332
Conversation
32e6762
to
2cc5d2f
Compare
subxt/src/tx/signer.rs
Outdated
@@ -25,6 +25,7 @@ pub trait Signer<T: Config> { | |||
} | |||
|
|||
#[cfg(feature = "substrate-compat")] | |||
#[cfg_attr(docsrs, doc(cfg(feature = "substrate-compat")))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line that we have to add below each feature is sortof ugly! I'm not really familiar with it; what does it do? I also wonder whether we could avoid this line duplication somehow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree, we could write a macro for it as we have in jsonrpsee
…ed-items' into na-generate-docs-for-feature-gated-items
…ed-items' into na-generate-docs-for-feature-gated-items
…r-feature-gated-items
I noticed that the stuff hidden behind the
unstable-light-client
doesn't show up on docs.rs/subxt which this PR fixes.docsrs
is still unstable and needs to enabled if one wants to use it, rust-lang/rust#43781