The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
This example runs six things through the component package
that upstream wazero does not support:
An interface export — instantiate adder.wasm and call
component:adder/calc#add(2, 3), passing and receiving lifted Component Model
values.
A WASI 0.2 command — a genuine rustc wasm32-wasip2wasi:cli/command
(hello.wasm) with WASI stdio wired up, run to print hello world.
An async export — async_first_light.wasm exports run-async, a
Component Model async (callback-ABI) export. From the embedder it is called
exactly like a synchronous export; the async scheduler is driven transparently
underneath, and the call returns once the task completes.
A thread — thread.wasm (source: testdata/thread.wat)
spawns a Component Model thread with thread.new-indirect and hands control to
it with thread.yield-then-resume; the worker thread resolves the task. It is
still a single blocking Call from Go.
Multi-threaded map-reduce — multithread.wasm (source:
testdata/multithread.wat) spawns five Component
Model threads over one shared array: four mappers each double their 2-element
chunk, then a reducer sums the doubled array (2*(1+..+8) = 72). Real
multi-threaded array processing, cooperatively scheduled inside the guest.
(CM thread.* is currently only reachable from hand-authored .wat — no Rust
toolchain emits it, and wazy does not implement wasi-threads spawn, so this
is the genuine article for CM threads.)
CallAsync — await_import.wasm awaits an async import get() -> u32. The
host registers it with component.WithAsyncImport and completes it from
another goroutine (real I/O in a real host). inst.CallAsync returns a
PendingCall the moment the guest parks; PendingCall.Await resumes it once
the external Resolve lands — the flow a blocking Call cannot express.