mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
Tighten compile-time leaf inventory checks
This commit is contained in:
@@ -12,11 +12,18 @@ pub mod endpoint;
|
||||
#[cfg(feature = "leaf_tui")]
|
||||
pub mod tui;
|
||||
|
||||
#[cfg(feature = "leaf_endpoint")]
|
||||
pub use endpoint::Open;
|
||||
#[cfg(feature = "leaf_endpoint")]
|
||||
pub use endpoint::RemoteShellEndpoint;
|
||||
#[cfg(feature = "leaf_tui")]
|
||||
pub use tui::RemoteShellTui;
|
||||
|
||||
#[cfg(not(feature = "leaf_endpoint"))]
|
||||
/// Compile-time procedure symbol kept available even when the endpoint runtime is
|
||||
/// not built, so the leaf declaration still validates its declared inventory.
|
||||
pub struct Open;
|
||||
|
||||
/// Open-request payload for the remote shell leaf.
|
||||
///
|
||||
/// The shell currently needs no structured arguments, but a named payload type is
|
||||
|
||||
Reference in New Issue
Block a user