Move to upstream wasmtime, refactor globals snapshot (#6759)

* refactor globals snapshot

* ignore test

* update pwasm-utils ref

* line width

* add doc comment for internal struct

* add explanation for iteration

* Demote rustdoc to a comment

* use 0.14

Co-authored-by: Sergei Shulepov <sergei@parity.io>
This commit is contained in:
Nikolay Volf
2020-08-11 18:05:31 +03:00
committed by GitHub
parent 58ebf50839
commit c347300e3e
6 changed files with 82 additions and 139 deletions
+27 -30
View File
@@ -6552,20 +6552,17 @@ name = "sc-executor-wasmtime"
version = "0.8.0-rc5"
dependencies = [
"assert_matches",
"cranelift-codegen",
"cranelift-wasm",
"log",
"parity-scale-codec",
"parity-wasm 0.41.0",
"pwasm-utils",
"sc-executor-common",
"scoped-tls",
"sp-allocator",
"sp-core",
"sp-runtime-interface",
"sp-wasm-interface",
"substrate-wasmtime",
"wasmtime-environ",
"wasmtime-runtime",
"wasmtime",
]
[[package]]
@@ -8609,31 +8606,6 @@ dependencies = [
name = "substrate-wasm-builder-runner"
version = "1.0.6"
[[package]]
name = "substrate-wasmtime"
version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d75a69f5b3afef86e3e372529bf3fb1f7219b20287c4490e4cb4b4e91970f4f5"
dependencies = [
"anyhow",
"backtrace",
"cfg-if",
"lazy_static",
"libc",
"log",
"region",
"rustc-demangle",
"smallvec 1.4.1",
"target-lexicon",
"wasmparser 0.59.0",
"wasmtime-environ",
"wasmtime-jit",
"wasmtime-profiling",
"wasmtime-runtime",
"wat",
"winapi 0.3.8",
]
[[package]]
name = "subtle"
version = "1.0.0"
@@ -9641,6 +9613,31 @@ version = "0.59.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a950e6a618f62147fd514ff445b2a0b53120d382751960797f85f058c7eda9b9"
[[package]]
name = "wasmtime"
version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1cd3c4f449382779ef6e0a7c3ec6752ae614e20a42e4100000c3efdc973100e2"
dependencies = [
"anyhow",
"backtrace",
"cfg-if",
"lazy_static",
"libc",
"log",
"region",
"rustc-demangle",
"smallvec 1.4.1",
"target-lexicon",
"wasmparser 0.59.0",
"wasmtime-environ",
"wasmtime-jit",
"wasmtime-profiling",
"wasmtime-runtime",
"wat",
"winapi 0.3.8",
]
[[package]]
name = "wasmtime-debug"
version = "0.19.0"