4

Provide cabi_realloc on wasm32-wasip2 by default by alexcrichton · Pull Request...

 3 weeks ago
source link: https://github.com/rust-lang/rust/pull/122411
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Conversation

Member

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK