mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
Reduce hook table public surface
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user