Skip to content

Conversation

@andreas-karlsson
Copy link
Contributor

@andreas-karlsson andreas-karlsson commented Sep 1, 2025

Our build was wrongly configured, apparently the config in project toml doesn't apply. This fix brings the wasm size down from 535K to 353K (yes it "inverts" the digits 😄 ). Some other minor improvements are also included.

Edit: The PR isn't so small any longer cause I broke the path of the built wasm module that is shared between the host projects which are all ran in ci. I fixed this by introducing a more sensible and stable path wasm/rust_guest.wasm and create a make file target for it. I also removed generated proto sources that were committed in node and go and made the ci integration tests all use make. On the upside I was wrong about the size reduction in the wasm module and it's actually even better; now at 286K.

@@ -0,0 +1,7 @@
{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should have this checked in as anyone using this editor will have to define these or have errors in the tooling.

Copy link
Member

@fabriziodemaria fabriziodemaria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@fabriziodemaria fabriziodemaria merged commit fae928b into main Sep 2, 2025
7 checks passed
@fabriziodemaria fabriziodemaria deleted the wasm-profile branch September 2, 2025 08:05
@github-actions github-actions bot mentioned this pull request Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants