As of Rust 1.6.0, the generated documentation hides the implementation of each macro pattern:
Is there a way to hide some of the patterns from the Cargo-generated docs?
macro_rules! mc {
// hide this entire pattern
(@impl, $arg:expr) => { 42 + $arg };
// but not this one
($arg:expr) => { mc!(@impl, $arg) };
}
#[macro_use(public)] extern crate ...
) they'll receive an error and also need to includehidden
:#[macro_use(public, hidden)] extern crate...
. – Commorant