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

12
Cargo.lock generated
View File

@@ -2231,7 +2231,7 @@ version = "0.9.0"
dependencies = [
"anyhow",
"wasmtime",
"wast 8.0.0",
"wast 9.0.0",
]
[[package]]
@@ -2245,20 +2245,20 @@ dependencies = [
[[package]]
name = "wast"
version = "8.0.0"
version = "9.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f9df3d716118a503b2f6bbb6ff46b21997ab0cc167b01de7a188e45e4b01e8d"
checksum = "ee7b16105405ca2aa2376ba522d8d4b1a11604941dd3bb7df9fd2ece60f8d16a"
dependencies = [
"leb128",
]
[[package]]
name = "wat"
version = "1.0.9"
version = "1.0.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4a927b35badc29c97d97e82689eef7f72fc936d884b3391804c1bb6cd2bdccbb"
checksum = "56173f7f4fb59aebe35a7e71423845e1c6c7144bfb56362d497931b6b3bed0f6"
dependencies = [
"wast 8.0.0",
"wast 9.0.0",
]
[[package]]

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: _,