Skip to content

[RFC] Add frozen python Lib to WASM build #1142

Description

@palaviv

Summary

In the current WASM build we can import the stdlib libraries written in Rust (time, hashlib for example) but we cannot import any python libs (collections for example). I would suggest to freeze all the modules in the Lib/ folder to allow them to be imported in WASM.

Detailed Explanation

When building the WASM build we will add all the modules in Lib/ to the hashmap in frozen.rs.

Drawbacks, Rationale, and Alternatives

  • This will increase the WASM build size.

Unresolved Questions

  • Should we add libraries like io and os?
  • Should we add this as a feature flag to the regular build?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRequest for comments

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions