Stream: wasi

Topic: jco and wasip3


view this post on Zulip Andy Wingo (Sep 25 2025 at 09:46):

Hey, how do I get jco to work with wasip3 ?

I just checked out jco:

git clone https://github.com/bytecodealliance/jco
cd jco
npm install typescript
npm run build

Then from another dir I am trying:

npx --prefix=~/src/wasip3/jco jco run \
  wasi-testsuite/tests/rust/testsuite/wasm32-wasip3/multi-clock-wait.wasm

You can get that file here: https://github.com/WebAssembly/wasi-testsuite/blob/prod/testsuite-base/tests/rust/testsuite/wasm32-wasip3/multi-clock-wait.wasm

Anyway, the result is a backtrace:

thread '<unnamed>' panicked at crates/js-component-bindgen/src/transpile_bindgen.rs:2388:17:
not yet implemented: [lower_import()] FunctionKind::AsyncFreeStanding
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
(jco run) Error: Unable to transpile command for execution
    at runComponent (file:///home/wingo/src/wasip3/jco/packages/jco/src/cmd/run.js:101:19)
    at async file:///home/wingo/src/wasip3/jco/packages/jco/src/jco.js:485:17 {
  [cause]: RuntimeError: unreachable
      at js_component_bindgen_component.wasm.abort (wasm://wasm/js_component_bindgen_component.wasm-2157550e:wasm-function[66816]:0x16cdd59)
      at js_component_bindgen_component.wasm._ZN3std3sys3pal4wasi7helpers14abort_internal17ha5c7c7f137dfd2a7E (wasm://wasm/js_component_bindgen_component.wasm-2157550e:wasm-function[66680]:0x16c1e45)
      at js_component_bindgen_component.wasm._ZN3std7process5abort17h1f0c5bda232b5244E (wasm://wasm/js_component_bindgen_component.wasm-2157550e:wasm-function[66617]:0x16bc5df)
      at js_component_bindgen_component.wasm._RNvCsj4CZ6flxxfE_7___rustc12___rust_abort (wasm://wasm/js_component_bindgen_component.wasm-2157550e:wasm-function[66616]:0x16bc5d5)
      at js_component_bindgen_component.wasm._RNvCsj4CZ6flxxfE_7___rustc18___rust_start_panic (wasm://wasm/js_component_bindgen_component.wasm-2157550e:wasm-function[66567]:0x16bb105)
      at js_component_bindgen_component.wasm._RNvCsj4CZ6flxxfE_7___rustc10rust_panic (wasm://wasm/js_component_bindgen_component.wasm-2157550e:wasm-function[66713]:0x16c376d)
      at js_component_bindgen_component.wasm._ZN3std9panicking20rust_panic_with_hook17h0680752b21c39de3E (wasm://wasm/js_component_bindgen_component.wasm-2157550e:wasm-function[66709]:0x16c3634)
      at js_component_bindgen_component.wasm._ZN3std9panicking19begin_panic_handler28_$u7b$$u7b$closure$u7d$$u7d$17hd0cc751148985cc7E (wasm://wasm/js_component_bindgen_component.wasm-2157550e:wasm-function[66689]:0x16c2462)
      at js_component_bindgen_component.wasm._ZN3std3sys9backtrace26__rust_end_short_backtrace17h8dfda85cca241a2aE (wasm://wasm/js_component_bindgen_component.wasm-2157550e:wasm-function[66688]:0x16c239c)
      at js_component_bindgen_component.wasm._RNvCsj4CZ6flxxfE_7___rustc17rust_begin_unwind (wasm://wasm/js_component_bindgen_component.wasm-2157550e:wasm-function[66701]:0x16c301b)
}

Any ideas? @Victor Adossi are you the jco wizard? :)

WASI Testsuite. Contribute to WebAssembly/wasi-testsuite development by creating an account on GitHub.

view this post on Zulip Victor Adossi (Sep 25 2025 at 10:57):

Hey so unfortunately Jco is not yet ready for use with P3 eyt! I'm working on it :bow:

view this post on Zulip Victor Adossi (Sep 25 2025 at 10:58):

we have some components that work right now, but not all the functionality is implemented just yet

not yet implemented: [lower_import()] FunctionKind::AsyncFreeStanding

Yeah that bit right there


Last updated: Dec 06 2025 at 06:05 UTC