-
Notifications
You must be signed in to change notification settings - Fork 37
Migrate to target wasmv1-none #441
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
Conversation
✅ Deploy Preview for delightful-dieffenbachia-2097e0 canceled.
|
|
Not sure what the backwards compatibility strategy is for previous target |
|
NOTE: CI is failing on clippy warning in rwa package (unrelated to these wasm target changes). The issue is the lint rule for document enums, where all variants share the same prefix:
This issue should be addressed in a separate PR. |
|
@jsmaxi thanks a lot! 🥳 |
|
LGTM @jsmaxi will the change in this PR affect your work here? |
|
I agree, ill check it once more today, and hopefully we can merge it |
|
@brozorec Removal of "cdylib" shouldn't cause any issues and can be merged together |
I was wondering if it could simplify somehow your work. |
|
@brozorec Actually good point, after removal, the panic handler becomes unnecessary. I can update the PR |
|
@jsmaxi is it ready to merge? If so, we can merge it 👍 |
|
Please do 👍 |
Fixes #367
Migrate target from wasm32-unkown-unkown to wasmv1-none.
This change migrates to
wasm32v1-nonetarget by mainly updatingtest-utilspackages (default-impl-macro-test and event-assertion) to handleno_stdenvironments.Changes:
Applied
#![cfg_attr(target_family = "wasm", no_std)]to prevent Cargo from injectingstd::preludeinto empty crates when building for wasm targets that don't support std (likewasm32v1-none). Added required panic handler forno_stdwasm environments.Constrained dependencies to non-wasm targets:
event-assertionstd implementation in conditional compilation:The test and build commands continue to function correctly, with the new
wasm32v1-nonetarget.PR Checklist