lion-core 0.3.0

Lion microkernel — production types, state machine, and kernel API
Documentation
// Copyright (C) 2026 HaiyangLi
// SPDX-License-Identifier: AGPL-3.0-or-later
//! Lion State Module
//!
//! Complete state machine for the Lion microkernel.

mod actor;
mod kernel;
mod memory;
mod plugin;
#[allow(clippy::module_inception)]
mod state;
mod thread;
mod workflow;

pub use memory::{LinearMemory, MemoryError, MetaState, ResourceStatus};

pub use kernel::{
    kernel_dispatch, CapTable, ChildrenIndex, KernelError, KernelRequest, KernelResult,
    KernelState, KernelStateCore, KeyState, PluginMeta, ResourceMeta, RevocationState,
};

pub use plugin::{PluginError, PluginLocal, PluginState};

pub use actor::{ActorError, ActorRuntime, Message, Queue};

pub use workflow::{
    Edge, NodeState, NodeStateEntry, RetryEntry, WorkflowDef, WorkflowError, WorkflowInstance,
    WorkflowStatus,
};

pub use thread::{
    DomainScheduleEntry, FaultType, IPCBlockReason, IdleThreadEntry, KernelEntryReason,
    ReadyQueueEntry, Registers, ReleaseQueueEntry, SchedulerAction, SchedulerState, ThreadState,
    ThreadTable, ThreadTableEntry, TCB,
};

pub use state::{ResourceInfo, State, StateError};