Alex Crichton 335c0b1ab6 Add support for modules importing memory
The default of Rust wasm binaries is to export the memory that they contain, but
LLD also supports an `--import-memory` option where memory is imported into a
module instead. It's looking like importing memory is along the lines of how
shared memory wasm modules will work (they'll all import the same memory).

This commit adds support to wasm-bindgen to support modules which import memory.
Memory accessors are tweaked to no longer always assume that the wasm module
exports its memory. Additionally JS bindings will create a `memory` option
automatically because LLD always imports memory from an `env` module which won't
actually exist.
2018-08-26 15:41:36 -07:00
..
2018-08-16 23:36:42 -07:00
2018-08-16 23:36:42 -07:00
2018-08-19 14:33:01 -07:00
2018-08-24 02:15:02 +02:00
2018-08-19 14:33:01 -07:00
2018-08-16 23:36:42 -07:00
2018-08-19 14:33:01 -07:00
2018-08-16 23:36:42 -07:00