feat(runtime): add resident Wasmtime actor runtime
- define versioned service and clock WIT contracts\n- enforce import allowlists, fuel, epoch, memory, I/O, and mailbox limits\n- keep one Store and Component Instance resident per serial Actor\n- add echo, counter, fault, spin, and capability probe components\n- cover lifecycle, concurrency, sandbox, and fault recovery behavior
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package wasmeld:clock@0.1.0;
|
||||
|
||||
interface monotonic-clock {
|
||||
now: func() -> u64;
|
||||
}
|
||||
|
||||
world clock-host {
|
||||
import monotonic-clock;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package wasmeld:service@0.1.0;
|
||||
|
||||
world service-component {
|
||||
variant service-error {
|
||||
init-failed(string),
|
||||
call-failed(string),
|
||||
}
|
||||
|
||||
export init: func(config: list<u8>) -> result<_, service-error>;
|
||||
export invoke: func(input: list<u8>) -> result<list<u8>, service-error>;
|
||||
}
|
||||
Reference in New Issue
Block a user