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
// Async bindings.
//
// The source world's `run` export and `accept-http`/`submit-exchange` imports
// are async. The guest runs as a tokio task driving `run` (via
// `store.run_concurrent`); host imports receive an `&Accessor`
// (HostWithStore) and use async channel ops (`.recv().await`/`.send().await`).
// `is-cancelled` stays sync (a `with` peek that must not yield). See
// docs/superpowers/specs/2026-07-08-wasm-source-async-stream-design.md.
wasmtime::component::bindgen!({
    path: "wit",
    world: "source",
    with: {
        "camel:plugin/source-host.http-listener": crate::source_host::HttpListenerHandle,
    },
});