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

16
src-tauri/wit/world.wit Normal file
View file

@ -0,0 +1,16 @@
package component:decoder;
interface host {
log: func(message: string);
}
interface decoder {
init: func();
name: func() -> string;
format-signal-value: func(value: string) -> string;
}
world component {
import host;
export decoder;
}