Skip to main content

lenso/
lib.rs

1//! Public facade for the Lenso backend framework.
2
3#[cfg(any(feature = "host", feature = "host-transactions"))]
4pub mod host;
5
6/// Console UI and contribution declarations used by Module authors.
7pub mod console {
8    pub use lenso_contracts::{
9        CONSOLE_BRIDGE_PROTOCOL, CONSOLE_MODULE_PROTOCOL, CONSOLE_MODULE_PROTOCOL_MAJOR,
10        CONSOLE_UI_ESM_FORMAT, ConsoleActionInputBinding, ConsoleActionInputValue,
11        ConsoleContribution, ConsoleContributionAction, ConsoleContributionKind,
12        ConsoleModuleManifest, ConsoleModuleSurface, ConsoleNavigation, ConsoleNavigationGroup,
13        ConsolePermissionGrant, ConsolePermissionRequest, ConsoleSlot, ConsoleSlotContext,
14        ConsoleSlotContextField, ConsoleSlotContextFieldType, ConsoleSurface, ConsoleSurfaceArea,
15        ConsoleSurfacePresentation, ConsoleUiArtifact, ConsoleUiArtifactEntry,
16        ConsoleUiArtifactFormat, ConsoleUiArtifactStyleAsset, ConsoleWorkspaceRef,
17    };
18}
19
20/// Public System Plane wire contracts and verification primitives.
21#[cfg(feature = "service")]
22pub mod system_plane {
23    pub use lenso_service::system_plane::*;
24}
25
26/// Public Workload Control Adapter contracts.
27#[cfg(feature = "service")]
28pub mod workload_control {
29    pub use lenso_service::workload_control::*;
30}
31
32pub use lenso_contracts::*;