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?
Summary
In the current WASM build we can import the stdlib libraries written in Rust (
time,hashlibfor example) but we cannot import any python libs (collectionsfor example). I would suggest to freeze all the modules in theLib/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 infrozen.rs.Drawbacks, Rationale, and Alternatives
Unresolved Questions
ioandos?