Example of code from tokio below, the codes wrapped in macro cfg_rt
is not visible in vscode Outline. I have set rust-analyzer.cargo.features: "all"
cfg_rt! {
pub fn spawn_local<F>(future: F) -> JoinHandle<F::Output>
where
F: Future + 'static,
F::Output: 'static,
{
spawn_local_inner(future, None)
}
macro_rules! cfg_rt {
($($item:item)*) => {
$(
#[cfg(feature = "rt")]
#[cfg_attr(docsrs, doc(cfg(feature = "rt")))]
$item
)*
}
}