brson / wasm-opt-rs

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

Accept byte array as input #164

Open clearloop opened 11 months ago

clearloop commented 11 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 8 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 :(