Update the wat and wast crates (#998)

Now with support for annotations, plus a few minor bug fixes
This commit is contained in:
Alex Crichton
2020-02-26 12:36:00 -06:00
committed by GitHub
parent d55a9967b1
commit 427fc9a732
4 changed files with 9 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ cfg-if = "0.1.9"
backtrace = "0.3.42"
rustc-demangle = "0.1.16"
lazy_static = "1.4"
wat = { version = "1.0.8", optional = true }
wat = { version = "1.0.10", optional = true }
[target.'cfg(target_os = "windows")'.dependencies]
winapi = "0.3.7"

View File

@@ -13,7 +13,7 @@ edition = "2018"
[dependencies]
anyhow = "1.0.19"
wasmtime = { path = "../api", version = "0.9.0" }
wast = "8.0.0"
wast = "9.0.0"
[badges]
maintenance = { status = "actively-developed" }

View File

@@ -240,7 +240,7 @@ impl WastContext {
match directive {
Module(mut module) => {
let binary = module.encode()?;
self.module(module.name.map(|s| s.name()), &binary)?;
self.module(module.id.map(|s| s.name()), &binary)?;
}
Register {
span: _,