camel-component-wasm 0.24.0

WASM plugin component for rust-camel
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
wasmtime::component::bindgen!({
    path: "wit",
    world: "authorization-policy",
    imports: {
        // Only the genuinely-async host functions use the `async` convention;
        // the rest stay sync. A global `default: async | store` would register
        // sync WIT funcs (e.g. get-property) with an async ABI, which fails to
        // match guests that import them as sync.
        "camel:plugin/host.camel-call": async | store,
        "camel:plugin/host.camel-poll": async | store,
        default: store,
    },
    exports: {
        default: async | store,
    },
});