Implement the Wasm `custom-page-sizes` proposal
Robbepop opened this issue · 3 comments
This is about adding support for the custom-page-sizes
Wasm proposal.
The custom-page-sizes
Wasm proposal has been recently moved to Phase 3 and is moving forward quickly thus stabilization can be expected to happen soon.
Having custom-page-sizes
support in Wasmi will be an enabler (in parts) for using Wasmi in even more embedded environments where memory usage is particularly constrained. Not every embedded environment can afford 64kB worth of linear memory for a single Wasm page.
Wasmtime introduced the MemoryTypeBuilder
in order to set the various properties of a Wasm memory defined on the host side. Since Wasmi tries to implement the Wasmtime API for its users we should introduce the same API even though Wasmi's memory type isn't as complicated, yet.
Link: https://docs.rs/wasmtime/25.0.1/wasmtime/struct.MemoryTypeBuilder.html