rust-lang/cargo#7593 seems relevant. cc @LukasKalbertodt @Eh2406
If I have the following binary crate, cargo doc on stable 1.40.0 will correctly show g and not f, while beta will show both despite f being doc(hidden).
#[doc(hidden)]
pub fn f() {}
pub fn g() {}
fn main() {}
I understand that we want private things documented for bin crates, but I am labeling this a regression because this makes it impossible for macro-generated code to hide distracting implementation details that might overwhelm the actual useful API of the generated code.
I would like to suggest continuing to leave doc(hidden) items out of bin crate documentation as the default behavior of cargo doc.
rust-lang/cargo#7593 seems relevant. cc @LukasKalbertodt @Eh2406
If I have the following binary crate,
cargo docon stable 1.40.0 will correctly showgand notf, while beta will show both despitefbeing doc(hidden).I understand that we want private things documented for bin crates, but I am labeling this a regression because this makes it impossible for macro-generated code to hide distracting implementation details that might overwhelm the actual useful API of the generated code.
I would like to suggest continuing to leave doc(hidden) items out of bin crate documentation as the default behavior of
cargo doc.