Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide cabi_realloc on wasm32-wasip2 by default #122411

Merged
merged 2 commits into from
Apr 3, 2024

Commits on Mar 13, 2024

  1. Get wasm32-wasip2 compiling with its custom pal implementation

    The ordering of targets in `pal/mod.rs` did not end up using the wasip2
    implementation, so after reordering that I've edited the implementation
    to compile correctly.
    alexcrichton committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    3311283 View commit details
    Browse the repository at this point in the history
  2. Provide cabi_realloc on wasm32-wasip2 by default

    This commit provides a component model intrinsic in the standard library
    by default on the `wasm32-wasip2` target. This intrinsic is not
    required by the component model itself but is quite common to use, for
    example it's needed if a wasm module receives a string or a list.
    
    The intention of this commit is to provide an overridable definition in
    the standard library through a weak definition of this function. That
    means that downstream crates can provide their own customized and more
    specific versions if they'd like, but the standard library's version
    should suffice for general-purpose use.
    alexcrichton committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    5af8187 View commit details
    Browse the repository at this point in the history