A package which provides transformation operation for WebAssembly binary. Inspired by Rust implementation
public func lowerI64Imports(_ input: [UInt8]) throws -> [UInt8]
Inserts trampoline functions for imports that have i64 params or returns. This is useful for running Wasm modules in browsers that do not support JavaScript BigInt -> Wasm i64 integration. Especially in the case for i64 WASI Imports.
public func stripCustomSections(_ input: [UInt8]) throws -> [UInt8]
Strip all custom sections from input WebAssembly binary.