mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Switch to fork of parity-wasm that can support bumpalo vectors
This commit is contained in:
parent
51de420ee7
commit
1be6fd1222
3 changed files with 5 additions and 5 deletions
5
Cargo.lock
generated
5
Cargo.lock
generated
|
@ -2774,9 +2774,8 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "parity-wasm"
|
name = "parity-wasm"
|
||||||
version = "0.42.2"
|
version = "0.44.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "git+https://github.com/brian-carroll/parity-wasm?branch=master#373f655f64d2260a2e9665811f7b6ed17f9db705"
|
||||||
checksum = "be5e13c266502aadf83426d87d81a0f5d1ef45b8027f5a471c360abfe4bfae92"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "parking_lot"
|
name = "parking_lot"
|
||||||
|
|
|
@ -10,7 +10,8 @@ roc_collections = { path = "../collections" }
|
||||||
roc_module = { path = "../module" }
|
roc_module = { path = "../module" }
|
||||||
roc_mono = { path = "../mono" }
|
roc_mono = { path = "../mono" }
|
||||||
bumpalo = { version = "3.6.1", features = ["collections"] }
|
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" }
|
roc_std = { path = "../../roc_std" }
|
||||||
wasmer = "2.0.0"
|
wasmer = "2.0.0"
|
||||||
|
|
|
@ -44,7 +44,7 @@ pub fn build_module<'a>(
|
||||||
let (builder, _) = build_module_help(env, procedures)?;
|
let (builder, _) = build_module_help(env, procedures)?;
|
||||||
let module = builder.build();
|
let module = builder.build();
|
||||||
module
|
module
|
||||||
.to_bytes()
|
.into_bytes()
|
||||||
.map_err(|e| -> String { format!("Error serialising Wasm module {:?}", e) })
|
.map_err(|e| -> String { format!("Error serialising Wasm module {:?}", e) })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue