bytecodealliance / javy

JS to WebAssembly toolchain
Apache License 2.0
2.29k stars 110 forks source link

Use `derive-builder` in the runner crate #750

Open saulecabrera opened 2 months ago

saulecabrera commented 2 months ago

The javy-runner contains a builder that reconciles all the CLI options and therefore it has grown (and will continue to grow) to contain a wide range of fields. As per @surma's suggestion, we could consider using the derive-builder crate to reduce some of the boilerplate.

_Originally posted by @surma in https://github.com/bytecodealliance/javy/pull/748#discussion_r1751623095_

surma commented 2 months ago

Just discovered typed-builder. Both wildly popular. Worth looking and comparing.