Skip to content

Commit

Permalink
Wrap wasm-opt related functions in struct (#687)
Browse files Browse the repository at this point in the history
* Add `WasmOptHandler`

Just a basic copy-pasta of what's in the existing optimization code

* Move code from `optimize_wasm` into a handler method

* Pull suggestion string into const

* Remove old Wasm optimization functions

* Remove `dest_optimized` argument from `optimize` method

* Move `check_wasm_opt_version_compatibility` into WasmOptHandler impl

I think it makes sense to have this be associated with the handler
instead of just floating around on its own.

* Move the handler code further up the module, before all the functions

* Decrease indentation of error string

* Move `WasmOptHandler` into its own module

* Move `create_executable` test helper to `utils` module

* Switch from `env_logger` to `tracing`

Related PR: #689

* Indent some code
  • Loading branch information
HCastano authored Aug 16, 2022
1 parent a248a4d commit ebd388e
Show file tree
Hide file tree
Showing 4 changed files with 383 additions and 329 deletions.
Loading

0 comments on commit ebd388e

Please sign in to comment.