Files
wasmeld/components/echo/src/lib.rs
T
Maofeng cfac7d85f0 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
2026-07-27 04:59:33 +08:00

21 lines
397 B
Rust

mod bindings {
wit_bindgen::generate!({
path: "wit",
world: "echo-component",
});
}
struct Echo;
impl bindings::Guest for Echo {
fn init(_config: Vec<u8>) -> Result<(), bindings::ServiceError> {
Ok(())
}
fn invoke(input: Vec<u8>) -> Result<Vec<u8>, bindings::ServiceError> {
Ok(input)
}
}
bindings::export!(Echo with_types_in bindings);