#[visibility::make]
#[cfg_attr(…)]
).Since it is currently not possible to conditionally modify the visibility of an item, but since it is possible to conditionally apply an attribute, this crate features a trivial attribute that modifies the visibility of the decorated item. This way, by conditionally applying it, one can achieve the desired goal:
rust
/// Some fancy docs.
///
/// ## Example
///
///
rust
/// ::my_crate::module::foo();
/// ``
// Assuming
cargo test --doc --features integration-tests` is run:
mod module { pub fn foo() {} } ```