wasi, Rust + JS decoder works

This commit is contained in:
Martin Kavík 2024-07-04 16:16:50 +02:00
parent f0e9a8ca94
commit e01752ecec
7 changed files with 310 additions and 14 deletions

View file

@ -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`

View file

@ -1,4 +1,4 @@
import { log } from "component:javascript-decoder/host"
import { log } from "component:decoder/host"
const name = "Javascript Test Decoder"