wasmtime_component

This commit is contained in:
Martin Kavík 2024-07-04 00:30:13 +02:00
parent 3778469de9
commit f0e9a8ca94
12 changed files with 69 additions and 65 deletions

View file

@ -7,5 +7,4 @@ How to create and build the Python component:
5. Create the `src` folder with the file `app.py`
6. Create the `wit` folder with the file `world.wit`
7. Update code as needed
8. `componentize-py --wit-path wit/world.wit bindings src/bindings`
9. `componentize-py --wit-path wit/world.wit componentize src.app --output python_decoder.wasm`
8. `rm -rf src/bindings && componentize-py --wit-path wit/world.wit bindings src/bindings && componentize-py --wit-path wit/world.wit componentize src.app --output python_decoder.wasm`

View file

@ -1,4 +1,4 @@
package component:python-decoder;
package component:decoder;
interface host {
log: func(message: string);