Migrate to target wasmv1-none #441
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #367
Migrate target from wasm32-unkown-unkown to wasmv1-none.
This change migrates to
wasm32v1-none
target by mainly updatingtest-utils
packages (default-impl-macro-test and event-assertion) to handleno_std
environments.Changes:
Applied
#![cfg_attr(target_family = "wasm", no_std)]
to prevent Cargo from injectingstd::prelude
into empty crates when building for wasm targets that don't support std (likewasm32v1-none
). Added required panic handler forno_std
wasm environments.Constrained dependencies to non-wasm targets:
event-assertion
std implementation in conditional compilation:The test and build commands continue to function correctly, with the new
wasm32v1-none
target.PR Checklist