WasmTransformer

0.4.1

A Swift package for reading, writing, and transformation of WebAssembly binaries
swiftwasm/WasmTransformer

What's New

0.4.1

2022-08-13T16:59:36Z

This release fixes build issues with Swift 5.7.

What's Changed

Full Changelog: 0.4.0...0.4.1

WasmTransformer

Test

A package which provides transformation operation for WebAssembly binary. Inspired by Rust implementation

lowerI64Imports

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.

stripCustomSections

public func stripCustomSections(_ input: [UInt8]) throws -> [UInt8]

Strip all custom sections from input WebAssembly binary.

Description

  • Swift Tools 5.4.0
View More Packages from this Author

Dependencies

Last updated: Thu Oct 17 2024 15:20:19 GMT-0900 (Hawaii-Aleutian Daylight Time)