Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug, cleanup and update wasm/js #1302

Open
2 of 5 tasks
rouzwelt opened this issue Feb 15, 2025 · 0 comments
Open
2 of 5 tasks

debug, cleanup and update wasm/js #1302

rouzwelt opened this issue Feb 15, 2025 · 0 comments
Assignees
Labels
general update A general update js/wasm Update wasm/js refactor Code refactor rust Related to rust crates

Comments

@rouzwelt
Copy link
Contributor

rouzwelt commented Feb 15, 2025

this is a followup of #966

todo:

  • - move shared wasm bindgen helpers into a sep repo to be used across all repos: https://github.com/rainlanguage/rain.wasm
  • - remove typeshare in favor of wasm-bindgen and tsify and fix name/type collisions: remove typeshare #1277
  • - fix/cleanup redundant/untyped and bloat bindings by using latest wasm-bg attributes that were added in our PR for wasm-bindgen
  • - single point of export for all crates in js_api and as result gather all bindings in a single .wasm file and js/ts file, this requires to all js_api folders in rust crates to export them in a standalone crate called js_api
  • - expose wasm-bg bindings impls through a feature flag, the wasm-bindgen bindings in rust are still code blocks that a user of the crate can extend/build on top of, so they should still be available in normal rlib builds through feature flags
@rouzwelt rouzwelt self-assigned this Feb 15, 2025
@rouzwelt rouzwelt added refactor Code refactor js/wasm Update wasm/js general update A general update rust Related to rust crates labels Feb 15, 2025
@rouzwelt rouzwelt mentioned this issue Feb 18, 2025
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
general update A general update js/wasm Update wasm/js refactor Code refactor rust Related to rust crates
Projects
None yet
Development

No branches or pull requests

1 participant