mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-19 23:07:33 +03:00
Switch to fork of parity-wasm that can support bumpalo vectors
This commit is contained in:
parent
51de420ee7
commit
1be6fd1222
5
Cargo.lock
generated
5
Cargo.lock
generated
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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) })
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user