From e34945fe26b4813ac77f27eed69d7e582d757e94 Mon Sep 17 00:00:00 2001 From: Bo Yao Date: Thu, 22 Jul 2021 18:01:14 +0800 Subject: [PATCH] 0.18.1 --- Cargo.lock | 6 +++--- lib/api/Cargo.toml | 4 ++-- lib/clif-backend/Cargo.toml | 2 +- lib/emscripten/Cargo.toml | 2 +- lib/llvm-backend/Cargo.toml | 2 +- lib/middleware-common/Cargo.toml | 2 +- lib/runtime-c-api/Cargo.toml | 2 +- lib/runtime-core/Cargo.toml | 2 +- lib/runtime/Cargo.toml | 6 +++--- lib/singlepass-backend/Cargo.toml | 4 ++-- lib/singlepass-backend/src/codegen_x64.rs | 4 ++-- lib/wasi-experimental-io-devices/Cargo.toml | 2 +- lib/wasi/Cargo.toml | 2 +- lib/win-exception-handler/Cargo.toml | 2 +- 14 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 93519ff239..df5c17c632 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2933,7 +2933,7 @@ dependencies = [ [[package]] name = "wasmer-runtime-core-near" -version = "0.18.0" +version = "0.18.1" dependencies = [ "bincode", "blake3", @@ -2962,7 +2962,7 @@ dependencies = [ [[package]] name = "wasmer-runtime-near" -version = "0.18.0" +version = "0.18.1" dependencies = [ "criterion", "lazy_static", @@ -2979,7 +2979,7 @@ dependencies = [ [[package]] name = "wasmer-singlepass-backend-near" -version = "0.18.0" +version = "0.18.1" dependencies = [ "bincode", "borsh", diff --git a/lib/api/Cargo.toml b/lib/api/Cargo.toml index 2cf5e65e45..2965f873fb 100644 --- a/lib/api/Cargo.toml +++ b/lib/api/Cargo.toml @@ -12,11 +12,11 @@ license = "MIT" [dependencies] serde = { version = "1", features = ["derive"] } -wasmer-runtime-core = { version = "0.18.0", path = "../runtime-core", package = "wasmer-runtime-core-near" } +wasmer-runtime-core = { version = "0.18.1", path = "../runtime-core", package = "wasmer-runtime-core-near" } [dependencies.wasmer-singlepass-backend] path = "../singlepass-backend" -version = "0.18.0" +version = "0.18.1" optional = true package = "wasmer-singlepass-backend-near" diff --git a/lib/clif-backend/Cargo.toml b/lib/clif-backend/Cargo.toml index 8694f93e9c..e58f4faa32 100644 --- a/lib/clif-backend/Cargo.toml +++ b/lib/clif-backend/Cargo.toml @@ -11,7 +11,7 @@ edition = "2018" readme = "README.md" [dependencies] -wasmer-runtime-core = { path = "../runtime-core", version = "0.18.0", package = "wasmer-runtime-core-near" } +wasmer-runtime-core = { path = "../runtime-core", version = "0.18.1", package = "wasmer-runtime-core-near" } cranelift-native = "0.59.0" cranelift-codegen = "0.59.0" cranelift-entity = "0.59.0" diff --git a/lib/emscripten/Cargo.toml b/lib/emscripten/Cargo.toml index 501294ef14..00d140023a 100644 --- a/lib/emscripten/Cargo.toml +++ b/lib/emscripten/Cargo.toml @@ -15,7 +15,7 @@ lazy_static = "1.4" libc = "0.2.60" log = "0.4" time = "0.1" -wasmer-runtime-core = { path = "../runtime-core", version = "0.18.0", package = "wasmer-runtime-core-near" } +wasmer-runtime-core = { path = "../runtime-core", version = "0.18.1", package = "wasmer-runtime-core-near" } [target.'cfg(windows)'.dependencies] getrandom = "0.1" diff --git a/lib/llvm-backend/Cargo.toml b/lib/llvm-backend/Cargo.toml index 76e31b9507..2f981e814c 100644 --- a/lib/llvm-backend/Cargo.toml +++ b/lib/llvm-backend/Cargo.toml @@ -11,7 +11,7 @@ edition = "2018" readme = "README.md" [dependencies] -wasmer-runtime-core = { path = "../runtime-core", version = "0.18.0", features = ["generate-debug-information-no-export-symbols"], package = "wasmer-runtime-core-near" } +wasmer-runtime-core = { path = "../runtime-core", version = "0.18.1", features = ["generate-debug-information-no-export-symbols"], package = "wasmer-runtime-core-near" } wasmparser = "0.51.3" smallvec = "1" goblin = "0.1" diff --git a/lib/middleware-common/Cargo.toml b/lib/middleware-common/Cargo.toml index 370b28e6c7..bbe056b32c 100644 --- a/lib/middleware-common/Cargo.toml +++ b/lib/middleware-common/Cargo.toml @@ -10,4 +10,4 @@ categories = ["wasm"] edition = "2018" [dependencies] -wasmer-runtime-core = { path = "../runtime-core", version = "0.18.0", package = "wasmer-runtime-core-near" } +wasmer-runtime-core = { path = "../runtime-core", version = "0.18.1", package = "wasmer-runtime-core-near" } diff --git a/lib/runtime-c-api/Cargo.toml b/lib/runtime-c-api/Cargo.toml index 4de5677e1e..aa4d8c4345 100644 --- a/lib/runtime-c-api/Cargo.toml +++ b/lib/runtime-c-api/Cargo.toml @@ -25,7 +25,7 @@ version = "0.17.1" [dependencies.wasmer-runtime-core] default-features = false path = "../runtime-core" -version = "0.18.0" +version = "0.18.1" package = "wasmer-runtime-core-near" [dependencies.wasmer-wasi] diff --git a/lib/runtime-core/Cargo.toml b/lib/runtime-core/Cargo.toml index 939d2f26a0..2ae8fd5515 100644 --- a/lib/runtime-core/Cargo.toml +++ b/lib/runtime-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasmer-runtime-core-near" -version = "0.18.0" +version = "0.18.1" description = "Wasmer runtime core library" license = "MIT" authors = ["The Wasmer Engineering Team "] diff --git a/lib/runtime/Cargo.toml b/lib/runtime/Cargo.toml index 459db0c242..1e26259762 100644 --- a/lib/runtime/Cargo.toml +++ b/lib/runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasmer-runtime-near" -version = "0.18.0" +version = "0.18.1" description = "Wasmer runtime library" license = "MIT" authors = ["The Wasmer Engineering Team "] @@ -11,13 +11,13 @@ edition = "2018" readme = "README.md" [dependencies] -wasmer-singlepass-backend = { path = "../singlepass-backend", version = "0.18.0", optional = true, package = "wasmer-singlepass-backend-near" } +wasmer-singlepass-backend = { path = "../singlepass-backend", version = "0.18.1", optional = true, package = "wasmer-singlepass-backend-near" } lazy_static = "1.4" memmap = "0.7" [dependencies.wasmer-runtime-core] path = "../runtime-core" -version = "0.18.0" +version = "0.18.1" package = "wasmer-runtime-core-near" [dependencies.wasmer-clif-backend] diff --git a/lib/singlepass-backend/Cargo.toml b/lib/singlepass-backend/Cargo.toml index 1059ccb5ef..a5c1dbd7bb 100644 --- a/lib/singlepass-backend/Cargo.toml +++ b/lib/singlepass-backend/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasmer-singlepass-backend-near" -version = "0.18.0" +version = "0.18.1" repository = "https://github.com/wasmerio/wasmer" description = "Wasmer runtime single pass compiler backend" license = "MIT" @@ -11,7 +11,7 @@ edition = "2018" readme = "README.md" [dependencies] -wasmer-runtime-core = { path = "../runtime-core", version = "0.18.0", package = "wasmer-runtime-core-near" } +wasmer-runtime-core = { path = "../runtime-core", version = "0.18.1", package = "wasmer-runtime-core-near" } dynasm = "1.0.0" dynasmrt = "1.0.0" lazy_static = "1.4" diff --git a/lib/singlepass-backend/src/codegen_x64.rs b/lib/singlepass-backend/src/codegen_x64.rs index 4d5b648049..26daddc860 100644 --- a/lib/singlepass-backend/src/codegen_x64.rs +++ b/lib/singlepass-backend/src/codegen_x64.rs @@ -1157,8 +1157,8 @@ impl ModuleCodeGenerator } unsafe fn from_cache(artifact: Artifact, _: Token) -> Result { let (info, _, memory) = artifact.consume(); - - let cache_image: CacheImage = BorshDeserialize::try_from_slice(&mut memory.as_slice()) + // expected to have additional bytes, so not using try_from_slice here. + let cache_image: CacheImage = BorshDeserialize::deserialize(&mut memory.as_slice()) .map_err(|x| CacheError::DeserializeError(format!("{:?}", x)))?; let mut code_mem = CodeMemory::new(cache_image.code.len()); diff --git a/lib/wasi-experimental-io-devices/Cargo.toml b/lib/wasi-experimental-io-devices/Cargo.toml index d15e12586b..c23b29511e 100644 --- a/lib/wasi-experimental-io-devices/Cargo.toml +++ b/lib/wasi-experimental-io-devices/Cargo.toml @@ -15,7 +15,7 @@ maintenance = { status = "experimental" } log = "0.4" minifb = "0.13" wasmer-wasi = { version = "0.17.1", path = "../wasi" } -wasmer-runtime-core = { version = "0.18.0", path = "../runtime-core", package = "wasmer-runtime-core-near" } +wasmer-runtime-core = { version = "0.18.1", path = "../runtime-core", package = "wasmer-runtime-core-near" } ref_thread_local = "0.0" serde = "1" typetag = "0.1" diff --git a/lib/wasi/Cargo.toml b/lib/wasi/Cargo.toml index 949e2300e1..287d719593 100644 --- a/lib/wasi/Cargo.toml +++ b/lib/wasi/Cargo.toml @@ -20,7 +20,7 @@ getrandom = "0.1" time = "0.1" typetag = "0.1" serde = { version = "1", features = ["derive"] } -wasmer-runtime-core = { path = "../runtime-core", version = "0.18.0", package = "wasmer-runtime-core-near" } +wasmer-runtime-core = { path = "../runtime-core", version = "0.18.1", package = "wasmer-runtime-core-near" } [target.'cfg(windows)'.dependencies] winapi = "0.3" diff --git a/lib/win-exception-handler/Cargo.toml b/lib/win-exception-handler/Cargo.toml index e4b9b13ae4..b36967be93 100644 --- a/lib/win-exception-handler/Cargo.toml +++ b/lib/win-exception-handler/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/wasmerio/wasmer" edition = "2018" [target.'cfg(windows)'.dependencies] -wasmer-runtime-core = { path = "../runtime-core", version = "0.18.0", package = "wasmer-runtime-core-near" } +wasmer-runtime-core = { path = "../runtime-core", version = "0.18.1", package = "wasmer-runtime-core-near" } winapi = { version = "0.3.8", features = ["winbase", "errhandlingapi", "minwindef", "minwinbase", "winnt"] } libc = "0.2.60"