Skip to content

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

@palaviv

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRequest for comments

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions