mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-27 01:13:09 +00:00
Adds crates/weft-runtime/wit/weft-app.wit defining package weft:app@0.1.0
with interface notify { ready: func() }.
In the wasmtime-runtime path:
- Registers weft:app/notify@0.1.0 in the component linker before instantiation
- ready() prints
10 lines
399 B
Text
10 lines
399 B
Text
package weft:app@0.1.0;
|
|
|
|
/// Host interface that a WEFT app component imports to signal lifecycle events.
|
|
interface notify {
|
|
/// Signal to the runtime that the application has finished initialising
|
|
/// and is ready to serve requests. The runtime forwards this signal to
|
|
/// the session supervisor (appd), which transitions the session to the
|
|
/// Running state.
|
|
ready: func();
|
|
}
|