Skip to main content

capsule_runtime/
bindings.rs

1pub mod host {
2    wasmtime::component::bindgen!({
3        path: "wit/host",
4        world: "runtime-host",
5    });
6}
7
8/// The host side of the `tool` world's `murmur:process/process` import, served to every WASM
9/// tool's store by `invoke_tool_component` through [`crate::session_process`].
10pub mod tool_host {
11    wasmtime::component::bindgen!({
12        path: "wit/host",
13        world: "tool-host",
14        imports: { default: async },
15        with: {
16            "murmur:process/process.connection": crate::session_process::Connection,
17        },
18    });
19}
20
21pub mod hook {
22    wasmtime::component::bindgen!({
23        path: "wit/hook",
24        world: "hook",
25    });
26}
27
28pub mod process_driver {
29    wasmtime::component::bindgen!({
30        path: "wit/process-driver",
31        world: "process-driver",
32        exports: { default: async },
33    });
34}