Drops support for the WebAssembly text format (#614)
This drops the text format (%.wat) and renames InstantiateModuleFromCode to InstantiateModuleFromBinary as it is no longer ambiguous. We decided to stop supporting the text format as it isn't typically used in production, yet costs a lot of work to develop. Given the resources available and the increased work added with WebAssembly 2.0 and soon WASI 2, we can't afford to spend the time on it. The old parser is used only internally and will eventually be moved to its own repository named watzero, possibly towards archival. See #59 Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
@@ -38,7 +38,7 @@ func main() {
|
||||
|
||||
// Instantiate a WebAssembly module that imports the "log" function defined
|
||||
// in "env" and exports "memory" and functions we'll use in this example.
|
||||
mod, err := r.InstantiateModuleFromCode(ctx, greetWasm)
|
||||
mod, err := r.InstantiateModuleFromBinary(ctx, greetWasm)
|
||||
if err != nil {
|
||||
log.Panicln(err)
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ func main() {
|
||||
|
||||
// Instantiate a WebAssembly module that imports the "log" function defined
|
||||
// in "env" and exports "memory" and functions we'll use in this example.
|
||||
mod, err := r.InstantiateModuleFromCode(ctx, greetWasm)
|
||||
mod, err := r.InstantiateModuleFromBinary(ctx, greetWasm)
|
||||
if err != nil {
|
||||
log.Panicln(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user