mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-24 14:42:35 +03:00
335c0b1ab6
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. |
||
---|---|---|
.. | ||
backend | ||
cli | ||
cli-support | ||
futures | ||
js-sys | ||
macro | ||
macro-support | ||
shared | ||
test | ||
test-macro | ||
typescript | ||
wasm-interpreter | ||
web-sys | ||
webidl | ||
webidl-tests |