From 83b3db4de4e679c78444d4aaffeeb00f22fc6c6f Mon Sep 17 00:00:00 2001 From: auronandace Date: Wed, 1 Jul 2026 13:33:19 +0100 Subject: [PATCH] adjust some wasm recipes after testing --- recipes/wip/wasm/binaryen/recipe.toml | 2 +- recipes/wip/wasm/gabagool/recipe.toml | 5 +---- recipes/wip/wasm/spin-sdk/recipe.toml | 11 +++++++++++ recipes/wip/wasm/trunk/recipe.toml | 2 +- recipes/wip/wasm/wabt/recipe.toml | 2 +- recipes/wip/wasm/wasm-pack/recipe.toml | 2 +- recipes/wip/wasm/wasm-tools/recipe.toml | 2 +- recipes/wip/wasm/wasmer/recipe.toml | 2 +- recipes/wip/wasm/wasmi/recipe.toml | 2 +- recipes/wip/wasm/wasminspect/recipe.toml | 5 ----- recipes/wip/wasm/wasmtime/recipe.toml | 4 ++-- recipes/wip/wasm/wepl/recipe.toml | 5 ----- 12 files changed, 21 insertions(+), 23 deletions(-) create mode 100644 recipes/wip/wasm/spin-sdk/recipe.toml delete mode 100644 recipes/wip/wasm/wasminspect/recipe.toml delete mode 100644 recipes/wip/wasm/wepl/recipe.toml diff --git a/recipes/wip/wasm/binaryen/recipe.toml b/recipes/wip/wasm/binaryen/recipe.toml index bfc1410e6..4b91191e8 100644 --- a/recipes/wip/wasm/binaryen/recipe.toml +++ b/recipes/wip/wasm/binaryen/recipe.toml @@ -1,4 +1,4 @@ -#TODO compiled but not tested +# TODO compiled and tested, can promote # build instructions: https://github.com/WebAssembly/binaryen#building [source] git = "https://github.com/WebAssembly/binaryen" diff --git a/recipes/wip/wasm/gabagool/recipe.toml b/recipes/wip/wasm/gabagool/recipe.toml index ff2525c30..51a7ae7d0 100644 --- a/recipes/wip/wasm/gabagool/recipe.toml +++ b/recipes/wip/wasm/gabagool/recipe.toml @@ -1,4 +1,4 @@ -#TODO not compiled or tested +# TODO compiled and tested, can promote [source] git = "https://github.com/friendlymatthew/gabagool" shallow_clone = true @@ -7,7 +7,4 @@ template = "custom" script = """ DYNAMIC_INIT cookbook_cargo_packages gabagool -mkdir -pv "${COOKBOOK_STAGE}/usr/share/gabagool" -cp -rv "${COOKBOOK_SOURCE}"/examples/game-of-life/wasm/game.wasm "${COOKBOOK_STAGE}/usr/share/gabagool" -cp -rv "${COOKBOOK_SOURCE}"/programs/*.wasm "${COOKBOOK_STAGE}/usr/share/gabagool" """ diff --git a/recipes/wip/wasm/spin-sdk/recipe.toml b/recipes/wip/wasm/spin-sdk/recipe.toml new file mode 100644 index 000000000..8f9c3369e --- /dev/null +++ b/recipes/wip/wasm/spin-sdk/recipe.toml @@ -0,0 +1,11 @@ +# TODO spin-sdk and spin-sdk-macro are in a subfolder crates +# cookbook_cargo_packages doesn't allow specifying files with / in them +# fails to compile because can't find them from workspace +[source] +git = "https://github.com/spinframework/spin-rust-sdk" +[build] +template = "custom" +script = """ +DYNAMIC_INIT +cookbook_cargo_packages spin-sdk spin-sdk-macro +""" diff --git a/recipes/wip/wasm/trunk/recipe.toml b/recipes/wip/wasm/trunk/recipe.toml index e03cb9db1..d9b2b452b 100644 --- a/recipes/wip/wasm/trunk/recipe.toml +++ b/recipes/wip/wasm/trunk/recipe.toml @@ -1,4 +1,4 @@ -#TODO fs_at and libc crates error +# TODO aws-lc-sys missing RANDGETENTCNT (https://gitlab.redox-os.org/redox-os/redox/-/work_items/1841) [source] git = "https://github.com/trunk-rs/trunk" [build] diff --git a/recipes/wip/wasm/wabt/recipe.toml b/recipes/wip/wasm/wabt/recipe.toml index 57310d5de..db394d3e5 100644 --- a/recipes/wip/wasm/wabt/recipe.toml +++ b/recipes/wip/wasm/wabt/recipe.toml @@ -1,4 +1,4 @@ -#TODO not compiled or tested +# TODO compiled and tested, can promote # build instructions: https://github.com/WebAssembly/wabt#building-using-cmake-directly-linux-and-macos [source] tar = "https://github.com/WebAssembly/wabt/releases/download/1.0.39/wabt-1.0.39.tar.xz" diff --git a/recipes/wip/wasm/wasm-pack/recipe.toml b/recipes/wip/wasm/wasm-pack/recipe.toml index 6dbb4af7c..558d1e5a5 100644 --- a/recipes/wip/wasm/wasm-pack/recipe.toml +++ b/recipes/wip/wasm/wasm-pack/recipe.toml @@ -1,4 +1,4 @@ -#TODO fs4 crate error +# TODO fs4 crate error (https://gitlab.redox-os.org/redox-os/redox/-/work_items/1840) [source] git = "https://github.com/rustwasm/wasm-pack" [build] diff --git a/recipes/wip/wasm/wasm-tools/recipe.toml b/recipes/wip/wasm/wasm-tools/recipe.toml index f02892265..c1bfb2c36 100644 --- a/recipes/wip/wasm/wasm-tools/recipe.toml +++ b/recipes/wip/wasm/wasm-tools/recipe.toml @@ -1,4 +1,4 @@ -#TODO compiled but not tested +# TODO compiled and tested, can promote [source] git = "https://github.com/bytecodealliance/wasm-tools" [build] diff --git a/recipes/wip/wasm/wasmer/recipe.toml b/recipes/wip/wasm/wasmer/recipe.toml index cc2e90cd1..ec86be221 100644 --- a/recipes/wip/wasm/wasmer/recipe.toml +++ b/recipes/wip/wasm/wasmer/recipe.toml @@ -1,4 +1,4 @@ -#TODO region crate error +# TODO region crate error (https://gitlab.redox-os.org/redox-os/redox/-/work_items/1837) [source] git = "https://github.com/wasmerio/wasmer" [build] diff --git a/recipes/wip/wasm/wasmi/recipe.toml b/recipes/wip/wasm/wasmi/recipe.toml index 24505714e..ff9ff09de 100644 --- a/recipes/wip/wasm/wasmi/recipe.toml +++ b/recipes/wip/wasm/wasmi/recipe.toml @@ -1,4 +1,4 @@ -#TODO fs-set-times and rustix crates error +# TODO iana-time-zone os detection (https://gitlab.redox-os.org/redox-os/redox/-/work_items/1838) [source] git = "https://github.com/wasmi-labs/wasmi" [build] diff --git a/recipes/wip/wasm/wasminspect/recipe.toml b/recipes/wip/wasm/wasminspect/recipe.toml deleted file mode 100644 index c69cb0f20..000000000 --- a/recipes/wip/wasm/wasminspect/recipe.toml +++ /dev/null @@ -1,5 +0,0 @@ -#TODO outdated redox_syscall crate -[source] -git = "https://github.com/kateinoigakukun/wasminspect" -[build] -template = "cargo" diff --git a/recipes/wip/wasm/wasmtime/recipe.toml b/recipes/wip/wasm/wasmtime/recipe.toml index ed1295bb5..bf417cf53 100644 --- a/recipes/wip/wasm/wasmtime/recipe.toml +++ b/recipes/wip/wasm/wasmtime/recipe.toml @@ -1,5 +1,5 @@ -#TODO requires *at functions in fcntl.h -#TODO (willnode) push changes upstream +# TODO (willnode) push changes upstream +# TODO upgrade to latest v47 [source] git = "https://github.com/willnode/wasmtime" branch = "v36-redox" diff --git a/recipes/wip/wasm/wepl/recipe.toml b/recipes/wip/wasm/wepl/recipe.toml deleted file mode 100644 index 351e6ef0d..000000000 --- a/recipes/wip/wasm/wepl/recipe.toml +++ /dev/null @@ -1,5 +0,0 @@ -#TODO fs-set-times crate error -[source] -git = "https://github.com/rylev/wepl" -[build] -template = "cargo"