Skip to content

Conversation

@dantinkakkar
Copy link
Contributor

@dantinkakkar dantinkakkar commented Oct 28, 2025

Description of the change

cabi_realloc will now not be removed in the postprocess step, hence, statically-linked Wasm modules will retain it.

Why am I making this change?

Memory can now be allocated using cabi_realloc on statically-linked Wasm modules, refer to #1033

Checklist

  • I've updated the relevant CHANGELOG files if necessary. Changes to javy-cli, javy-plugin, and javy-plugin-processing do not require updating CHANGELOG files.
  • I've updated the relevant crate versions if necessary. Versioning policy for library crates
  • I've updated documentation including crate documentation if necessary.

For the 2nd and 3rd points in the checklist, I didn't find anything relevant to the PR but please let me know @jeffcharles if there is anything to add; I'll be happy to do so.

Keep `cabi_realloc` export so it can be used with statically linked modules, refer to bytecodealliance#1033
Clarified that 'cabi_realloc' will remain in statically-linked Wasm module post generation.
@jeffcharles
Copy link
Collaborator

Can you bump the minor version on the codegen crate to 2.1.0-alpha.1? I'd consider this as a feature addition rather than a bugfix.

@dantinkakkar
Copy link
Contributor Author

Done @jeffcharles, hope I've covered the change

@jeffcharles
Copy link
Collaborator

The Cargo.lock also needs to be updated

@dantinkakkar
Copy link
Contributor Author

dantinkakkar commented Oct 28, 2025

Changed and checked that it is working fine with cargo vet, MB @jeffcharles I'm still getting used to the build system :(

Copy link
Collaborator

@jeffcharles jeffcharles left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks!

@jeffcharles jeffcharles merged commit 014d377 into bytecodealliance:main Oct 28, 2025
5 checks passed
@dantinkakkar dantinkakkar deleted the keep-cabi-realloc branch October 28, 2025 19:43
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.

2 participants