-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/wasmtools: initial commit by @Mossaka
all: replace submodule with Cargo-managed wasm-tools CLI * add wasm-tools as git submodule * update Makefile to compile wit/wasm-tools.wasm * use wazero to execute wasm-tools.wasm * Makefile: add a build command * Commit the wasm-tools.wasm file * Makefile: replace path with a variable for the name of the target * wit, Makefile: move wasmtools.go to internal/wasmtools * Remove wasmtools submodule Signed-off-by: Jiaxiao Zhou (Mossaka) <[email protected]> internal/wasmtools: optimize for size Adding lto, opt-level=z and other options to the cargo.toml reduces the wasm-tools.wasm binary size from 7.8 MBi to 3.5 MBi Signed-off-by: Jiaxiao Zhou (Mossaka) <[email protected]> wit/testdata_test: implement code review comment Signed-off-by: Jiaxiao Zhou <[email protected]> internal/wasmtools, wit: change the type of fsMap in Executor.Run to map[fs.FS]string Signed-off-by: Jiaxiao Zhou <[email protected]> Makefile: change dir to '.' Signed-off-by: Jiaxiao Zhou <[email protected]> internal/wasmtools, wit: enhance API, disable TinyGo tests, and improve naming * Rename to WasmTools to Instance * Add build tags to disable wasmtools when run under TinyGo * wasmtools_tinygo: New returns a new error * Rename Executor to Runner Signed-off-by: Jiaxiao Zhou <[email protected]> wit/testdata_test: change t.Skip to t.Log since Skip is not supported in TinyGo Signed-off-by: Jiaxiao Zhou <[email protected]> internal/wasmtools: add comments to improve readability for the Instance API Signed-off-by: Jiaxiao Zhou <[email protected]> CHANGELOG: Update with wasm-tools integration details Signed-off-by: Jiaxiao Zhou <[email protected]> internal/wasmtools, Makefile: add gzip compression for wasm-tools.wasm and update Makefile This adds gzip compression for the wasm-tools.wasm to further reduce the size to 1.2M from 3.5M. Added the wasm file to the .gitignore and thus the remote repo will only have the gzip file. Updated Makefile to zip and unzip the Wasm module. Signed-off-by: Jiaxiao Zhou <[email protected]> .github: Add set-up wasm-tools.wasm to the test.yaml and release.yaml Signed-off-by: Jiaxiao Zhou <[email protected]>
- Loading branch information
Showing
16 changed files
with
987 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
target | ||
wasm-tools.wasm |
Oops, something went wrong.