mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-06-14 02:51:10 +00:00
working import transform
This commit is contained in:
Generated
+1
-1
@@ -13,7 +13,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
[[package]]
|
||||
name = "parity-wasm"
|
||||
version = "0.2.0"
|
||||
source = "git+https://github.com/nikvolf/parity-wasm#cafc5058357f6ea84daaec870057da8455bf74e8"
|
||||
source = "git+https://github.com/nikvolf/parity-wasm#4011af4f75e9334a2a018fdb2f464d9c7eb21617"
|
||||
dependencies = [
|
||||
"byteorder 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
@@ -48,6 +48,8 @@ fn main() {
|
||||
// back to plain module
|
||||
let mut module = mbuilder.build();
|
||||
|
||||
assert!(module.global_section().is_some());
|
||||
|
||||
// calculate actual function index of the imported definition
|
||||
// (substract all imports that are NOT functions)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user