wasmtime_component
This commit is contained in:
parent
3778469de9
commit
f0e9a8ca94
12 changed files with 69 additions and 65 deletions
16
src-tauri/wit/world.wit
Normal file
16
src-tauri/wit/world.wit
Normal 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;
|
||||
}
|
Reference in a new issue