Swiftpack.co -  swiftwasm/WasmTransformer as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
swiftwasm/WasmTransformer
A Swift package for reading, writing, and transformation of WebAssembly binaries
.package(url: "https://github.com/swiftwasm/WasmTransformer.git", from: "0.0.3")

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.

GitHub

link
Stars: 27
Last commit: 21 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

44 weeks ago

Release stripCustomSections which strips all custom sections.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics