Switch to fork of parity-wasm that can support bumpalo vectors

This commit is contained in:
Brian Carroll 2021-10-14 10:07:30 +02:00
parent 51de420ee7
commit 1be6fd1222
3 changed files with 5 additions and 5 deletions

5
Cargo.lock generated
View File

@ -2774,9 +2774,8 @@ dependencies = [
[[package]]
name = "parity-wasm"
version = "0.42.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "be5e13c266502aadf83426d87d81a0f5d1ef45b8027f5a471c360abfe4bfae92"
version = "0.44.0"
source = "git+https://github.com/brian-carroll/parity-wasm?branch=master#373f655f64d2260a2e9665811f7b6ed17f9db705"
[[package]]
name = "parking_lot"

View File

@ -10,7 +10,8 @@ roc_collections = { path = "../collections" }
roc_module = { path = "../module" }
roc_mono = { path = "../mono" }
bumpalo = { version = "3.6.1", features = ["collections"] }
parity-wasm = "0.42"
# TODO: switch to parity-wasm 0.44 once it's out (allows bumpalo vectors in some places)
parity-wasm = { git = "https://github.com/brian-carroll/parity-wasm", branch = "master" }
roc_std = { path = "../../roc_std" }
wasmer = "2.0.0"

View File

@ -44,7 +44,7 @@ pub fn build_module<'a>(
let (builder, _) = build_module_help(env, procedures)?;
let module = builder.build();
module
.to_bytes()
.into_bytes()
.map_err(|e| -> String { format!("Error serialising Wasm module {:?}", e) })
}