How to hide `automatically generated` documentation items

⚓ rust    📅 2025-06-10    👤 surdeus    👁️ 2      

surdeus

The is a re-opening of the question

Suppose my only source code is src/lib.rs (see below). If I run cargo doc I get a huge number of items below Auto Trait Implementations and Blanket Implementations . How to I suppress these automatically generate items ?

//! cargo_test documentation

/// MyInt documentation
pub struct MyInt {
   pub value : u32 ,
}
/// MyInt + MyInt documentation
impl std::ops::Add<MyInt> for MyInt {
   type Output = MyInt;
   fn add(self, rhs : MyInt) -> MyInt {
      MyInt {
         value : self.value + rhs.value,
      }
   }
}

1 post - 1 participant

Read full topic

🏷️ rust_feed