Reduce hook table public surface

This commit is contained in:
Michael Mikovsky
2026-04-30 10:15:54 -06:00
parent 71b311065d
commit 7c0ee31d38
2 changed files with 4 additions and 24 deletions
+2 -1
View File
@@ -29,13 +29,14 @@ pub use unshell_protocol as protocol;
/// use unshell_leaves::role_leaf;
/// mod endpoint { pub struct DemoEndpoint; }
/// mod tui { pub struct DemoTui; }
/// # #[cfg(not(all(feature = "leaf_endpoint", feature = "leaf_tui")))]
/// role_leaf! {
/// pub type DemoLeaf {
/// endpoint => endpoint::DemoEndpoint,
/// tui => tui::DemoTui,
/// }
/// }
/// # #[cfg(feature = "leaf_endpoint")]
/// # #[cfg(all(feature = "leaf_endpoint", not(feature = "leaf_tui")))]
/// # let _ = core::marker::PhantomData::<DemoLeaf>;
/// ```
#[macro_export]