1//! Misc helpers (feature gates, doc_cfg, etc.). 2 3/// Conditionally add `#[doc(cfg(feature = $feat))]`. 4#[macro_export] 5macro_rules! doc_cfg { 6 ($feat:literal, $item:item) => { 7 #[cfg_attr(docsrs, doc(cfg(feature = $feat)))] 8 $item 9 }; 10}