Serialize and deserialize compilation artifacts. (#2020)

* Serialize and deserialize Module
* Use bincode to serialize
* Add wasm_module_serialize; docs
* Simple tests
This commit is contained in:
Yury Delendik
2020-07-21 15:05:50 -05:00
committed by GitHub
parent c420f65214
commit 399ee0a54c
17 changed files with 528 additions and 20 deletions

3
Cargo.lock generated
View File

@@ -2361,12 +2361,14 @@ version = "0.19.0"
dependencies = [
"anyhow",
"backtrace",
"bincode",
"cfg-if",
"lazy_static",
"libc",
"log",
"region",
"rustc-demangle",
"serde",
"smallvec",
"target-lexicon",
"tempfile",
@@ -2529,6 +2531,7 @@ dependencies = [
"more-asserts",
"object 0.20.0",
"region",
"serde",
"target-lexicon",
"thiserror",
"wasmparser 0.59.0",