brson / wasm-opt-rs

Rust bindings for Binaryen's wasm-opt
Apache License 2.0
61 stars 10 forks source link

Accept byte array as input #164

Open clearloop opened 9 months ago

clearloop commented 9 months ago

the current API only accepts file as input and output, make it possible to pass byte array as input, btw the wasm-opt binary can accept wasm from pipe

skyne98 commented 5 months ago

Will be keeping my eye on this! Want to incorporate wasm-opt into my scripting runtime pipeline, and writing to a temp file is very inefficient :(