feat: add wasmloader third-party module - #30
Closed
M09Ic wants to merge 1 commit into
Closed
Conversation
M09Ic
force-pushed
the
feat/rem-wasm-runtime
branch
from
August 6, 2026 17:48
587d926 to
1b285a6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
wasmloadermodule undermalefic-3rdwasmi, including thewasix_32v1IPv4 TCP imports used by REM's TinyGo buildExecuteBinaryfields to argv, environment, stdin, entry point, andBinaryResponsemalefic-rembackendWhy wasmi is optional
wasmiis required whenever thewasmloaderfeature is enabled. It is marked optional only so builds that excludewasmloaderdo not compile or ship a WASM interpreter. The defaultfullfeature includeswasmloader, so normal full builds still includewasmi.Validation
cargo check -p malefic-3rd --no-default-features --features wasmloader --target x86_64-unknown-linux-gnu --locked --offlinecargo check -p malefic-3rd --no-default-features --features wasmloader,as_module_dll --target x86_64-unknown-linux-gnu --locked --offlinecmd/export_wasmfixture with TinyGo 0.40.1 / Go 1.25.6_startentry with status 0 and empty stderrREM integration status
This validates the loader and REM module initialization, but not a complete REM data path yet. A real
RemDialattempt against a local native REM server timed out. The current REMcmd/export_wasmsource also calls the old two-callbackSetPollHooksAPI while the current API accepts one callback, so the fixture required a temporary compatibility edit that was restored afterward.The loader-side errno handling found during this test (
random_get,TCP_NODELAY, and socket shutdown) is fixed in this PR. FullRemDial/MemoryDialvalidation still requires aligning the REM TinyGo export implementation with the current REM polling API.