wasi, Rust + JS decoder works
This commit is contained in:
parent
f0e9a8ca94
commit
e01752ecec
7 changed files with 310 additions and 14 deletions
|
@ -7,5 +7,4 @@ How to create and build the Javascript component:
|
|||
5. Create the `src` folder with the file `index.js`
|
||||
6. Create the `wit` folder with the file `world.wit`
|
||||
7. Update code as needed
|
||||
8. `npx jco componentize src/index.js --wit wit/world.wit --out javascript_decoder.wasm`
|
||||
9. `npx jco opt javascript_decoder.wasm --output javascript_decoder.wasm`
|
||||
8. `npx jco componentize src/index.js --wit wit/world.wit --out javascript_decoder.wasm && npx jco opt javascript_decoder.wasm --output javascript_decoder.wasm`
|
||||
|
|
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
import { log } from "component:javascript-decoder/host"
|
||||
import { log } from "component:decoder/host"
|
||||
|
||||
const name = "Javascript Test Decoder"
|
||||
|
||||
|
|
Binary file not shown.
Reference in a new issue