Enable ed25519 to be built in wasm target with wasm32_c gate #1176
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.
I was curious about #918 and tried enabling a few tests to understand what's going on here. The curve25519 module doesn't seems to depend on assembly functions, so it looks safe to enable as per #918 (comment).
Before enabling these tests, I verified that I could reproduce an error about missing a module named
env
.Full output
The wat output shows that the extern'ed C functions are not available to wasm.
This patch enables the tests and allows the appropriate C file to be compiled when the wasm32_c feature is enabled. This was tested using the following command.
Is there a place that would be appropriate for documenting how to run the wasm-bindgen tests? It's not obvious unless you're already familiar with the workflow.