Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Support rust-std in WebAssembly runtime #4043

@sorpaas

Description

@sorpaas

The target we compile wasm runtime to, wasm32-unknown-unknown, actually has builtin std support. Adding support for std would help to solve many of our current user complaints.

Some details of the std support on the wasm target:

  • Filesystem is implemented as shim that cannot be constructed.
  • Single thread is assumed, which is used to implement constructs like Mutex and RwLock.
  • You can find more about the std implementation at this folder.
  • I think the only issue we need to deal with is the allocator. Currently the std library assumes dlmalloc, but it should be possible to switch it to our external allocator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    J0-enhancementAn additional feature request.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions