feat!(CLI): make contract optimize optional#672
Conversation
|
@leighmcculloch Ideally this would be a plugin. This prevents the feature issues altogether. However, currently we can only do The correctness of the rest of the CLI is independent from the optimize command, which is well tested underneath. Thanks @brson! For now can we feature gate it and then return to pull it out before the next release so we can publish the plugin. |
fe84992 to
fa07c00
Compare
I don't think we need too be too precious on location. We can make it a plugin and put that plugin at the top level. We can move it later if we think plugins should be multi level, but multi level plugins may represent a small security concern (unexpected, surprise, impersonation, etc), so we should consider them carefully. |
|
@leighmcculloch fair enough. Is this good enough for now and we move to a top level plugin later? |
|
If this is a short term gap, 👍🏻. Making this a plugin seems like the right move since the CLI has that capability. It's the perfect use case. Rust features are painful on a few fronts, and we've started trying to eliminate features from other repos. I think we'd want to eliminate this feature as soon as possible. |
leighmcculloch
left a comment
There was a problem hiding this comment.
I pushed a couple tweaks updating docs, etc. Looks good!
|
To be followed up by: |
Head branch was pushed to by a user without write access
|
Looks like preflight is failing to link on windows: |
|
Windows build fail seems due to github updating the windows image. |
What
Remove wasm-opt by default
Why
Some users had issues with building wasm-opt and this also makes installing it from source faster.
Known limitations
[TODO or N/A]