We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
By making them pub in the case of #[cfg(rustdoc)].
For example with the invocation from the readme:
#[readonly::make] pub struct S { pub n: i32, }
we will need to generate:
#[repr(C)] pub struct S { + #[cfg(not(rustdoc))] n: i32, + #[cfg(rustdoc)] + pub n: i32, } #[repr(C)] pub struct ReadOnlyS { pub n: i32, } impl core::ops::Deref for S { type Target = ReadOnlyS; ... }
Currently blocked on rust-lang/rust#43781.
The text was updated successfully, but these errors were encountered:
Fixed in 11457e3 by requiring opt-in at the call site.
#[readonly::make(doc = mycratename_doc_cfg)] pub struct MyStruct {...}
and in Cargo.toml:
[package.metadata.docs.rs] rustdoc-args = ["--cfg", "mycratename_doc_cfg"]
Sorry, something went wrong.
No branches or pull requests
By making them pub in the case of #[cfg(rustdoc)].
For example with the invocation from the readme:
we will need to generate:
Currently blocked on rust-lang/rust#43781.
The text was updated successfully, but these errors were encountered: