$ cargo install wkg
[...SNIP...]
Installed package `wkg v0.2.0` (executable `wkg`)
$ wkg get wasi:cli
No version specified; fetching version list...
Getting wasi:cli@0.2.0...
Wrote './wasi_cli@0.2.0.wit'
$ head -1 wasi_cli@0.2.0.wit
package wasi:cli@0.2.0;
$ wkg get --registry lann.wa.dev lann:hello-world@1.0.0
Getting lann:hello-world@1.0.0...
Wrote './lann_hello-world@1.0.0.wasm'
$ wasmtime run lann_hello-world@1.0.0.wasm
Hello, world!
...and we already have a bug; failure if you don't have a docker config: https://github.com/bytecodealliance/wasm-pkg-tools/issues/19
https://github.com/bytecodealliance/wasm-pkg-tools/pull/20
I loooooove early bugs. great to see this!!!
0.3.0 just published with fix
Last updated: Dec 23 2024 at 12:05 UTC