feat(runtime): add resident Wasmtime actor runtime

- define versioned service and clock WIT contracts
- enforce import allowlists, fuel, epoch, memory, I/O, and mailbox limits
- keep one Store and Component Instance resident per serial Actor
- add echo, counter, fault, spin, and capability probe components
- cover lifecycle, concurrency, sandbox, and fault recovery behavior
This commit is contained in:
Maofeng
2026-07-27 04:59:33 +08:00
parent 893895a76c
commit cfac7d85f0
41 changed files with 3240 additions and 18 deletions
+16
View File
@@ -0,0 +1,16 @@
//! A minimal resident WebAssembly Component runtime.
//!
//! The runtime intentionally has no network protocol or business capabilities.
//! It provides a restricted WASI compatibility context, links explicitly
//! imported host capabilities, loads a Component that implements the stable
//! service exports, and invokes it through one serial Actor.
mod bindings;
mod error;
mod manifest;
mod runtime;
pub use error::RuntimeError;
pub use manifest::{ResourceLimits, ServiceKey, ServiceManifest};
pub use runtime::{ActorHandle, Runtime, RuntimeConfig, RuntimeStats};
pub use wasmeld_package::SERVICE_WORLD;