From 6f1dc020faa358cc3d9fc8cae97da698f593784e Mon Sep 17 00:00:00 2001 From: Christophe Rosset Date: Sat, 16 Aug 2025 20:00:18 +0200 Subject: [PATCH 1/6] chore: update .nvmrc to 24.6.0 --- .nvmrc | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.nvmrc b/.nvmrc index fc37597..b5e8f5c 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -22.17.0 +24.6.0 diff --git a/package.json b/package.json index a79e98f..6176ab7 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,8 @@ "web-host:build": "npm run build --workspace=packages/web-host", "web-host:preview": "npm run preview --workspace=packages/web-host", "web-host:dev": "npm run dev --workspace=packages/web-host", - "prepare": "husky" + "prepare": "husky", + "clean:install": "find . -name \"node_modules\" -exec rm -rf '{}' +" }, "workspaces": [ "packages/*" From 6009a77262e16706d8b920c97c360bbca6a54aec Mon Sep 17 00:00:00 2001 From: Christophe Rosset Date: Sat, 16 Aug 2025 20:32:04 +0200 Subject: [PATCH 2/6] chore: update @bytecodealliance/jco to latest --- package-lock.json | 529 +++++++++++++++++++++++++-------- packages/web-host/package.json | 2 +- 2 files changed, 410 insertions(+), 121 deletions(-) diff --git a/package-lock.json b/package-lock.json index c46c0d2..caf7ce3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -480,44 +480,34 @@ } }, "node_modules/@bytecodealliance/componentize-js": { - "version": "0.18.2", - "resolved": "https://registry.npmjs.org/@bytecodealliance/componentize-js/-/componentize-js-0.18.2.tgz", - "integrity": "sha512-x9wH1h0CzidBRmeo0ujHGsLtNmFWKvFslyg6erlew6aWEGz0495ehPE/s0DmzdwjvV5rLiLSvBtinoL+2ueXVg==", + "version": "0.18.4", + "resolved": "https://registry.npmjs.org/@bytecodealliance/componentize-js/-/componentize-js-0.18.4.tgz", + "integrity": "sha512-j007E7t+Ww2lw3Ao1nrtqzgpEcrZD9+cpov8knf2NojJ3PGI8CkZBBZvjNgP05jnUP7EJ7jAyD8+HTzUxaJUSw==", "workspaces": [ "." ], "dependencies": { "@bytecodealliance/jco": "^1.9.1", - "@bytecodealliance/weval": "^0.3.3", + "@bytecodealliance/weval": "^0.3.4", "@bytecodealliance/wizer": "^7.0.5", - "es-module-lexer": "^1.6.0" + "es-module-lexer": "^1.6.0", + "oxc-parser": "^0.76.0" }, "bin": { "componentize-js": "src/cli.js" } }, "node_modules/@bytecodealliance/jco": { - "version": "1.11.2", - "resolved": "https://registry.npmjs.org/@bytecodealliance/jco/-/jco-1.11.2.tgz", - "integrity": "sha512-iZdVOXlfd+R144Fwt57PnFt3xJlejGx0LlKxG5MeHqeQOsurozcdMLjN4TNuXpnR4jFyO3zrR65NzAkA/W4gpw==", + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@bytecodealliance/jco/-/jco-1.13.2.tgz", + "integrity": "sha512-qQjxBRPtQMhDQRqbUT4l1KeTr6LavOohqweNSfWhyBlijexIsFFTM+3HImcp2YM0u0Chako4crnKZ5haGle5+Q==", "license": "(Apache-2.0 WITH LLVM-exception)", - "workspaces": [ - ".", - "examples/components/add", - "examples/components/http-hello-world", - "examples/components/node-fetch", - "examples/components/http-server-fetch-handler", - "examples/components/string-reverse", - "examples/components/string-reverse-upper", - "examples/components/webidl-book-library", - "packages/preview2-shim" - ], - "dependencies": { - "@bytecodealliance/componentize-js": "^0.17.0", + "dependencies": { + "@bytecodealliance/componentize-js": "^0.18.4", "@bytecodealliance/preview2-shim": "^0.17.2", "binaryen": "^123.0.0", "chalk-template": "^1", - "commander": "^12", + "commander": "^14", "mkdirp": "^3", "ora": "^8", "terser": "^5" @@ -526,18 +516,13 @@ "jco": "src/jco.js" } }, - "node_modules/@bytecodealliance/jco/node_modules/@bytecodealliance/componentize-js": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/@bytecodealliance/componentize-js/-/componentize-js-0.17.0.tgz", - "integrity": "sha512-FDgO5UPipfjyq5OghSB4JW313LkQJK3Sl647WH1jvIuYAyCq1j+bMt+Q66c3UF6IVs6PneNTGfGSjYgzID/k0w==", - "workspaces": [ - "." - ], - "dependencies": { - "@bytecodealliance/jco": "^1.9.1", - "@bytecodealliance/weval": "^0.3.3", - "@bytecodealliance/wizer": "^7.0.5", - "es-module-lexer": "^1.6.0" + "node_modules/@bytecodealliance/jco/node_modules/commander": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-14.0.0.tgz", + "integrity": "sha512-2uM9rYjPvyq39NwLRqaiLtWHyDC1FvryJDa2ATTVims5YAS4PupsEQsDvP14FqhFr0P49CYDugi59xaxJlTXRA==", + "license": "MIT", + "engines": { + "node": ">=20" } }, "node_modules/@bytecodealliance/preview2-shim": { @@ -547,9 +532,9 @@ "license": "(Apache-2.0 WITH LLVM-exception)" }, "node_modules/@bytecodealliance/weval": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@bytecodealliance/weval/-/weval-0.3.3.tgz", - "integrity": "sha512-hrQI47O1l3ilFscixu0uuSJTj5tbQW0QmCATQWWNW0E8wJxbKH4yo8y57O5gqpRSKk/T+da1sH/GJNrnGHTFNA==", + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/@bytecodealliance/weval/-/weval-0.3.4.tgz", + "integrity": "sha512-+GCKtZXhPj7qyDl5pR0F3PTEk8tWINV8dv1tUbKMjMXvqjHIkvzalkWo5ZL2kCKwh8Bwn8rWpSmyvRC/Nlu9nQ==", "license": "Apache-2.0", "dependencies": { "@napi-rs/lzma": "^1.1.2", @@ -678,20 +663,20 @@ } }, "node_modules/@emnapi/core": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.4.3.tgz", - "integrity": "sha512-4m62DuCE07lw01soJwPiBGC0nAww0Q+RY70VZ+n49yDIO13yyinhbWCeNnaob0lakDtWQzSdtNWzJeOJt2ma+g==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.4.5.tgz", + "integrity": "sha512-XsLw1dEOpkSX/WucdqUhPWP7hDxSvZiY+fsUC14h+FtQ2Ifni4znbBt8punRX+Uj2JG/uDb8nEHVKvrVlvdZ5Q==", "license": "MIT", "optional": true, "dependencies": { - "@emnapi/wasi-threads": "1.0.2", + "@emnapi/wasi-threads": "1.0.4", "tslib": "^2.4.0" } }, "node_modules/@emnapi/runtime": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.4.3.tgz", - "integrity": "sha512-pBPWdu6MLKROBX05wSNKcNb++m5Er+KQ9QkB+WVM+pW2Kx9hoSrVTnu3BdkI5eBLZoKu/J6mW/B6i6bJB2ytXQ==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.4.5.tgz", + "integrity": "sha512-++LApOtY0pEEz1zrd9vy1/zXVaVJJ/EbAF3u0fXIzPJEDtnITsBGbbK0EkM72amhl/R5b+5xx0Y/QhcVOpuulg==", "license": "MIT", "optional": true, "dependencies": { @@ -699,9 +684,9 @@ } }, "node_modules/@emnapi/wasi-threads": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.0.2.tgz", - "integrity": "sha512-5n3nTJblwRi8LlXkJ9eBzu+kZR8Yxcc7ubakyQTFzPMtIhFpUBRbsnc2Dv88IZDIbCDlBiWrknhB4Lsz7mg6BA==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.0.4.tgz", + "integrity": "sha512-PJR+bOmMOPH8AtcTGAyYNiuJ3/Fcoj2XN/gBEWzDIKh254XO+mM9XoXHk5GNEhodxeMznbg7BlRojVbKN+gC6g==", "license": "MIT", "optional": true, "dependencies": { @@ -1452,9 +1437,9 @@ } }, "node_modules/@napi-rs/lzma": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@napi-rs/lzma/-/lzma-1.4.3.tgz", - "integrity": "sha512-uBjLLoUM9ll03jL/bP7XjyPg0vTU0vQ35N1vVqQHbzlK/fVZyuF2B1p/A6kqPsFFhaoBKgO6oaxsuerv091RtQ==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma/-/lzma-1.4.5.tgz", + "integrity": "sha512-zS5LuN1OBPAyZpda2ZZgYOEDC+xecUdAGnrvbYzjnLXkrq/OBC3B9qcRvlxbDR3k5H/gVfvef1/jyUqPknqjbg==", "license": "MIT", "engines": { "node": ">= 10" @@ -1464,29 +1449,29 @@ "url": "https://github.com/sponsors/Brooooooklyn" }, "optionalDependencies": { - "@napi-rs/lzma-android-arm-eabi": "1.4.3", - "@napi-rs/lzma-android-arm64": "1.4.3", - "@napi-rs/lzma-darwin-arm64": "1.4.3", - "@napi-rs/lzma-darwin-x64": "1.4.3", - "@napi-rs/lzma-freebsd-x64": "1.4.3", - "@napi-rs/lzma-linux-arm-gnueabihf": "1.4.3", - "@napi-rs/lzma-linux-arm64-gnu": "1.4.3", - "@napi-rs/lzma-linux-arm64-musl": "1.4.3", - "@napi-rs/lzma-linux-ppc64-gnu": "1.4.3", - "@napi-rs/lzma-linux-riscv64-gnu": "1.4.3", - "@napi-rs/lzma-linux-s390x-gnu": "1.4.3", - "@napi-rs/lzma-linux-x64-gnu": "1.4.3", - "@napi-rs/lzma-linux-x64-musl": "1.4.3", - "@napi-rs/lzma-wasm32-wasi": "1.4.3", - "@napi-rs/lzma-win32-arm64-msvc": "1.4.3", - "@napi-rs/lzma-win32-ia32-msvc": "1.4.3", - "@napi-rs/lzma-win32-x64-msvc": "1.4.3" + "@napi-rs/lzma-android-arm-eabi": "1.4.5", + "@napi-rs/lzma-android-arm64": "1.4.5", + "@napi-rs/lzma-darwin-arm64": "1.4.5", + "@napi-rs/lzma-darwin-x64": "1.4.5", + "@napi-rs/lzma-freebsd-x64": "1.4.5", + "@napi-rs/lzma-linux-arm-gnueabihf": "1.4.5", + "@napi-rs/lzma-linux-arm64-gnu": "1.4.5", + "@napi-rs/lzma-linux-arm64-musl": "1.4.5", + "@napi-rs/lzma-linux-ppc64-gnu": "1.4.5", + "@napi-rs/lzma-linux-riscv64-gnu": "1.4.5", + "@napi-rs/lzma-linux-s390x-gnu": "1.4.5", + "@napi-rs/lzma-linux-x64-gnu": "1.4.5", + "@napi-rs/lzma-linux-x64-musl": "1.4.5", + "@napi-rs/lzma-wasm32-wasi": "1.4.5", + "@napi-rs/lzma-win32-arm64-msvc": "1.4.5", + "@napi-rs/lzma-win32-ia32-msvc": "1.4.5", + "@napi-rs/lzma-win32-x64-msvc": "1.4.5" } }, "node_modules/@napi-rs/lzma-android-arm-eabi": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@napi-rs/lzma-android-arm-eabi/-/lzma-android-arm-eabi-1.4.3.tgz", - "integrity": "sha512-XpjRUZ/EbWtVbMvW+ucon5Ykz7PjMoX65mIlUdAiVnaPGykzFAUrl8dl6Br5bfqnhQQfDjjUIgTAwWl3G++n1g==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-android-arm-eabi/-/lzma-android-arm-eabi-1.4.5.tgz", + "integrity": "sha512-Up4gpyw2SacmyKWWEib06GhiDdF+H+CCU0LAV8pnM4aJIDqKKd5LHSlBht83Jut6frkB0vwEPmAkv4NjQ5u//Q==", "cpu": [ "arm" ], @@ -1500,9 +1485,9 @@ } }, "node_modules/@napi-rs/lzma-android-arm64": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@napi-rs/lzma-android-arm64/-/lzma-android-arm64-1.4.3.tgz", - "integrity": "sha512-Bve6BF/4pnlO6HotIgRWgmUT3rbbW/QH471RF/GBA29GfEeUOPEdfQWC7tlzrLYsVFNX2KCWKd+XlxQNz9sRaA==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-android-arm64/-/lzma-android-arm64-1.4.5.tgz", + "integrity": "sha512-uwa8sLlWEzkAM0MWyoZJg0JTD3BkPknvejAFG2acUA1raXM8jLrqujWCdOStisXhqQjZ2nDMp3FV6cs//zjfuQ==", "cpu": [ "arm64" ], @@ -1516,9 +1501,9 @@ } }, "node_modules/@napi-rs/lzma-darwin-arm64": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@napi-rs/lzma-darwin-arm64/-/lzma-darwin-arm64-1.4.3.tgz", - "integrity": "sha512-UxTb56kL6pSVTsZ1ShibnqLSwJZLTWtPU5TNYuyIjVNQYAIG8JQ5Yxz35azjwBCK7AjD8pBdpWLYUSyJRGAVAw==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-darwin-arm64/-/lzma-darwin-arm64-1.4.5.tgz", + "integrity": "sha512-0Y0TQLQ2xAjVabrMDem1NhIssOZzF/y/dqetc6OT8mD3xMTDtF8u5BqZoX3MyPc9FzpsZw4ksol+w7DsxHrpMA==", "cpu": [ "arm64" ], @@ -1532,9 +1517,9 @@ } }, "node_modules/@napi-rs/lzma-darwin-x64": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@napi-rs/lzma-darwin-x64/-/lzma-darwin-x64-1.4.3.tgz", - "integrity": "sha512-ps6HiwGKS1P4ottyV2/hVboZ0ugdM1Z1qO9YFpcuKweORfxAkxwJ6S8jOt7G27LQiWiiQHVwsUCODTHDFhOUPQ==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-darwin-x64/-/lzma-darwin-x64-1.4.5.tgz", + "integrity": "sha512-vR2IUyJY3En+V1wJkwmbGWcYiT8pHloTAWdW4pG24+51GIq+intst6Uf6D/r46citObGZrlX0QvMarOkQeHWpw==", "cpu": [ "x64" ], @@ -1548,9 +1533,9 @@ } }, "node_modules/@napi-rs/lzma-freebsd-x64": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@napi-rs/lzma-freebsd-x64/-/lzma-freebsd-x64-1.4.3.tgz", - "integrity": "sha512-W49h41U3+vLnbthbPzvJX1fQtTG+1jyUlfB+wX3oxILvIur06PjJRdMXrFtOZpWkFsihK9gO2DRkQYQJIIgTZw==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-freebsd-x64/-/lzma-freebsd-x64-1.4.5.tgz", + "integrity": "sha512-XpnYQC5SVovO35tF0xGkbHYjsS6kqyNCjuaLQ2dbEblFRr5cAZVvsJ/9h7zj/5FluJPJRDojVNxGyRhTp4z2lw==", "cpu": [ "x64" ], @@ -1564,9 +1549,9 @@ } }, "node_modules/@napi-rs/lzma-linux-arm-gnueabihf": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-arm-gnueabihf/-/lzma-linux-arm-gnueabihf-1.4.3.tgz", - "integrity": "sha512-11PNPiMGuwwxIxd9yPZY3Ek6RFGFRFQb/AtMStJIwlmJ6sM/djEknClLJVbVXbC/nqm7htVZEr+qmYgoDy0fAw==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-arm-gnueabihf/-/lzma-linux-arm-gnueabihf-1.4.5.tgz", + "integrity": "sha512-ic1ZZMoRfRMwtSwxkyw4zIlbDZGC6davC9r+2oX6x9QiF247BRqqT94qGeL5ZP4Vtz0Hyy7TEViWhx5j6Bpzvw==", "cpu": [ "arm" ], @@ -1580,9 +1565,9 @@ } }, "node_modules/@napi-rs/lzma-linux-arm64-gnu": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-arm64-gnu/-/lzma-linux-arm64-gnu-1.4.3.tgz", - "integrity": "sha512-XzlxZjSXTcrWFHbvvv2xbV5+bSV5IJqCJ8CCksc7xV3uWEAso9yBPJ8VSRD3GPc7ZoBDRqJmgCb/HQzHpLBekw==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-arm64-gnu/-/lzma-linux-arm64-gnu-1.4.5.tgz", + "integrity": "sha512-asEp7FPd7C1Yi6DQb45a3KPHKOFBSfGuJWXcAd4/bL2Fjetb2n/KK2z14yfW8YC/Fv6x3rBM0VAZKmJuz4tysg==", "cpu": [ "arm64" ], @@ -1596,9 +1581,9 @@ } }, "node_modules/@napi-rs/lzma-linux-arm64-musl": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-arm64-musl/-/lzma-linux-arm64-musl-1.4.3.tgz", - "integrity": "sha512-k4fWiI4Pm61Esj8hnm7NWIbpZueTtP2jlJqmMhTqJyjqW3NUxbTHjSErZOZKIFRF1B3if4v5Tyzo7JL2X+BaSQ==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-arm64-musl/-/lzma-linux-arm64-musl-1.4.5.tgz", + "integrity": "sha512-yWjcPDgJ2nIL3KNvi4536dlT/CcCWO0DUyEOlBs/SacG7BeD6IjGh6yYzd3/X1Y3JItCbZoDoLUH8iB1lTXo3w==", "cpu": [ "arm64" ], @@ -1612,9 +1597,9 @@ } }, "node_modules/@napi-rs/lzma-linux-ppc64-gnu": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-ppc64-gnu/-/lzma-linux-ppc64-gnu-1.4.3.tgz", - "integrity": "sha512-tTIfk+TYZYbFySxaCMuzp4Zz1T3I6OYVYNAm+IrCSkZDLmUKUzBK3+Su+mT+PjcTNsAiHBa5NVjARXC7b7jmgQ==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-ppc64-gnu/-/lzma-linux-ppc64-gnu-1.4.5.tgz", + "integrity": "sha512-0XRhKuIU/9ZjT4WDIG/qnX7Xz7mSQHYZo9Gb3MP2gcvBgr6BA4zywQ9k3gmQaPn9ECE+CZg2V7DV7kT+x2pUMQ==", "cpu": [ "ppc64" ], @@ -1628,9 +1613,9 @@ } }, "node_modules/@napi-rs/lzma-linux-riscv64-gnu": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-riscv64-gnu/-/lzma-linux-riscv64-gnu-1.4.3.tgz", - "integrity": "sha512-HPyLYOYhkN7QYaWiKWhSnsLmx/l0pqgiiyaYeycgxCm9dwL8ummFWxveZqYjqdbUUvG7Mgi1jqgRe+55MVdyZQ==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-riscv64-gnu/-/lzma-linux-riscv64-gnu-1.4.5.tgz", + "integrity": "sha512-QrqDIPEUUB23GCpyQj/QFyMlr8SGxxyExeZz9OWFnHfb70kXdTLWrHS/hEI1Ru+lSbQ/6xRqeoGyQ4Aqdg+/RA==", "cpu": [ "riscv64" ], @@ -1644,9 +1629,9 @@ } }, "node_modules/@napi-rs/lzma-linux-s390x-gnu": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-s390x-gnu/-/lzma-linux-s390x-gnu-1.4.3.tgz", - "integrity": "sha512-YkcV+RSZZIMM3D5sPZqvo2Q7/tHXBhgJWBi+6ceo46pTlqgn/nH+pVz+CzsDmLWz5hqNSXyv5IAhOcg2CH6rAg==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-s390x-gnu/-/lzma-linux-s390x-gnu-1.4.5.tgz", + "integrity": "sha512-k8RVM5aMhW86E9H0QXdquwojew4H3SwPxbRVbl49/COJQWCUjGi79X6mYruMnMPEznZinUiT1jgKbFo2A00NdA==", "cpu": [ "s390x" ], @@ -1660,9 +1645,9 @@ } }, "node_modules/@napi-rs/lzma-linux-x64-gnu": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.4.3.tgz", - "integrity": "sha512-ep6PLjN1+g4P12Hc7sLRmVpXXaHX22ykqxnOzjXUoj1KTph5XgM4+fUCyE5dsYI+lB4/tXqFuf9ZeFgHk5f00A==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.4.5.tgz", + "integrity": "sha512-6rMtBgnIq2Wcl1rQdZsnM+rtCcVCbws1nF8S2NzaUsVaZv8bjrPiAa0lwg4Eqnn1d9lgwqT+cZgm5m+//K08Kw==", "cpu": [ "x64" ], @@ -1676,9 +1661,9 @@ } }, "node_modules/@napi-rs/lzma-linux-x64-musl": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-musl/-/lzma-linux-x64-musl-1.4.3.tgz", - "integrity": "sha512-QkCO6rVw0Z7eY0ziVc4aCFplbOTMpt0UBLPXWxsPd2lXtkAlRChzqaHOxdcL/HoLmBsqdCxmG0EZuHuAP/vKZQ==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-musl/-/lzma-linux-x64-musl-1.4.5.tgz", + "integrity": "sha512-eiadGBKi7Vd0bCArBUOO/qqRYPHt/VQVvGyYvDFt6C2ZSIjlD+HuOl+2oS1sjf4CFjK4eDIog6EdXnL0NE6iyQ==", "cpu": [ "x64" ], @@ -1692,25 +1677,47 @@ } }, "node_modules/@napi-rs/lzma-wasm32-wasi": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@napi-rs/lzma-wasm32-wasi/-/lzma-wasm32-wasi-1.4.3.tgz", - "integrity": "sha512-+rMamB0xaeDyVt4OP4cV888cnmso+m78iUebNhGcrL/WXIziwql50KQrmj7PBdBCza/W7XEcraZT8pO8gSDGcg==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-wasm32-wasi/-/lzma-wasm32-wasi-1.4.5.tgz", + "integrity": "sha512-+VyHHlr68dvey6fXc2hehw9gHVFIW3TtGF1XkcbAu65qVXsA9D/T+uuoRVqhE+JCyFHFrO0ixRbZDRK1XJt1sA==", "cpu": [ "wasm32" ], "license": "MIT", "optional": true, "dependencies": { - "@napi-rs/wasm-runtime": "^0.2.10" + "@napi-rs/wasm-runtime": "^1.0.3" }, "engines": { "node": ">=14.0.0" } }, + "node_modules/@napi-rs/lzma-wasm32-wasi/node_modules/@napi-rs/wasm-runtime": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.0.3.tgz", + "integrity": "sha512-rZxtMsLwjdXkMUGC3WwsPwLNVqVqnTJT6MNIB6e+5fhMcSCPP0AOsNWuMQ5mdCq6HNjs/ZeWAEchpqeprqBD2Q==", + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.4.5", + "@emnapi/runtime": "^1.4.5", + "@tybys/wasm-util": "^0.10.0" + } + }, + "node_modules/@napi-rs/lzma-wasm32-wasi/node_modules/@tybys/wasm-util": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.0.tgz", + "integrity": "sha512-VyyPYFlOMNylG45GoAe0xDoLwWuowvf92F9kySqzYh8vmYm7D2u4iUJKa1tOUpS70Ku13ASrOkS4ScXFsTaCNQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, "node_modules/@napi-rs/lzma-win32-arm64-msvc": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@napi-rs/lzma-win32-arm64-msvc/-/lzma-win32-arm64-msvc-1.4.3.tgz", - "integrity": "sha512-6gQ+R6ztw11hswdsEu0jsOOXXnJPwhOA1yHRjqfuFemhf6esMd8l9b0uh3BfLBNe7qumtrH4KLrHu8yC9pSY3g==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-win32-arm64-msvc/-/lzma-win32-arm64-msvc-1.4.5.tgz", + "integrity": "sha512-eewnqvIyyhHi3KaZtBOJXohLvwwN27gfS2G/YDWdfHlbz1jrmfeHAmzMsP5qv8vGB+T80TMHNkro4kYjeh6Deg==", "cpu": [ "arm64" ], @@ -1724,9 +1731,9 @@ } }, "node_modules/@napi-rs/lzma-win32-ia32-msvc": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@napi-rs/lzma-win32-ia32-msvc/-/lzma-win32-ia32-msvc-1.4.3.tgz", - "integrity": "sha512-+AJeJQoGE+QtZKlwM4VzDkfLmUa+6DsGOO5zdbIPlRCB6PEstRCXxp8lkMiQBNgk9f/IO0UEkRcJSZ+Hhqd8zw==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-win32-ia32-msvc/-/lzma-win32-ia32-msvc-1.4.5.tgz", + "integrity": "sha512-OeacFVRCJOKNU/a0ephUfYZ2Yt+NvaHze/4TgOwJ0J0P4P7X1mHzN+ig9Iyd74aQDXYqc7kaCXA2dpAOcH87Cg==", "cpu": [ "ia32" ], @@ -1740,9 +1747,9 @@ } }, "node_modules/@napi-rs/lzma-win32-x64-msvc": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/@napi-rs/lzma-win32-x64-msvc/-/lzma-win32-x64-msvc-1.4.3.tgz", - "integrity": "sha512-66dFCX9ACpVUyTTom89nxhllc88yJyjxGFHO0M2olFcrSJArulfbE9kNIATgh04NDAe/l8VsDhnAxWuvJY1GuA==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/@napi-rs/lzma-win32-x64-msvc/-/lzma-win32-x64-msvc-1.4.5.tgz", + "integrity": "sha512-T4I1SamdSmtyZgDXGAGP+y5LEK5vxHUFwe8mz6D4R7Sa5/WCxTcCIgPJ9BD7RkpO17lzhlaM2vmVvMy96Lvk9Q==", "cpu": [ "x64" ], @@ -1805,6 +1812,246 @@ "node": ">= 8" } }, + "node_modules/@oxc-parser/binding-android-arm64": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-android-arm64/-/binding-android-arm64-0.76.0.tgz", + "integrity": "sha512-1XJW/16CDmF5bHE7LAyPPmEEVnxSadDgdJz+xiLqBrmC4lfAeuAfRw3HlOygcPGr+AJsbD4Z5sFJMkwjbSZlQg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@oxc-parser/binding-darwin-arm64": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-darwin-arm64/-/binding-darwin-arm64-0.76.0.tgz", + "integrity": "sha512-yoQwSom8xsB+JdGsPUU0xxmxLKiF2kdlrK7I56WtGKZilixuBf/TmOwNYJYLRWkBoW5l2/pDZOhBm2luwmLiLw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@oxc-parser/binding-darwin-x64": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-darwin-x64/-/binding-darwin-x64-0.76.0.tgz", + "integrity": "sha512-uRIopPLvr3pf2Xj7f5LKyCuqzIU6zOS+zEIR8UDYhcgJyZHnvBkfrYnfcztyIcrGdQehrFUi3uplmI09E7RdiQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@oxc-parser/binding-freebsd-x64": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-freebsd-x64/-/binding-freebsd-x64-0.76.0.tgz", + "integrity": "sha512-a0EOFvnOd2FqmDSvH6uWLROSlU6KV/JDKbsYDA/zRLyKcG6HCsmFnPsp8iV7/xr9WMbNgyJi6R5IMpePQlUq7Q==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@oxc-parser/binding-linux-arm-gnueabihf": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-0.76.0.tgz", + "integrity": "sha512-ikRYDHL3fOdZwfJKmcdqjlLgkeNZ3Ez0qM8wAev5zlHZ+lY/Ig7qG5SCqPlvuTu+nNQ6zrFFaKvvt69EBKXU/g==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@oxc-parser/binding-linux-arm-musleabihf": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-0.76.0.tgz", + "integrity": "sha512-dtRv5J5MRCLR7x39K8ufIIW4svIc7gYFUaI0YFXmmeOBhK/K2t/CkguPnDroKtsmXIPHDRtmJ1JJYzNcgJl6Wg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@oxc-parser/binding-linux-arm64-gnu": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-0.76.0.tgz", + "integrity": "sha512-IE4iiiggFH2snagQxHrY5bv6dDpRMMat+vdlMN/ibonA65eOmRLp8VLTXnDiNrcla/itJ1L9qGABHNKU+SnE8g==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@oxc-parser/binding-linux-arm64-musl": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm64-musl/-/binding-linux-arm64-musl-0.76.0.tgz", + "integrity": "sha512-wi9zQPMDHrBuRuT7Iurfidc9qlZh7cKa5vfYzOWNBCaqJdgxmNOFzvYen02wVUxSWGKhpiPHxrPX0jdRyJ8Npg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@oxc-parser/binding-linux-riscv64-gnu": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-0.76.0.tgz", + "integrity": "sha512-0tqqu1pqPee2lLGY8vtYlX1L415fFn89e0a3yp4q5N9f03j1rRs0R31qesTm3bt/UK8HYjECZ+56FCVPs2MEMQ==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@oxc-parser/binding-linux-s390x-gnu": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-0.76.0.tgz", + "integrity": "sha512-y36Hh1a5TA+oIGtlc8lT7N9vdHXBlhBetQJW0p457KbiVQ7jF7AZkaPWhESkjHWAsTVKD2OjCa9ZqfaqhSI0FQ==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@oxc-parser/binding-linux-x64-gnu": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.76.0.tgz", + "integrity": "sha512-7/acaG9htovp3gp/J0kHgbItQTuHctl+rbqPPqZ9DRBYTz8iV8kv3QN8t8Or8i/hOmOjfZp9McDoSU1duoR4/A==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@oxc-parser/binding-linux-x64-musl": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-x64-musl/-/binding-linux-x64-musl-0.76.0.tgz", + "integrity": "sha512-AxFt0reY6Q2rfudABmMTFGR8tFFr58NlH2rRBQgcj+F+iEwgJ+jMwAPhXd2y1I2zaI8GspuahedUYQinqxWqjA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@oxc-parser/binding-wasm32-wasi": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-wasm32-wasi/-/binding-wasm32-wasi-0.76.0.tgz", + "integrity": "sha512-wHdkHdhf6AWBoO8vs5cpoR6zEFY1rB+fXWtq6j/xb9j/lu1evlujRVMkh8IM/M/pOUIrNkna3nzST/mRImiveQ==", + "cpu": [ + "wasm32" + ], + "license": "MIT", + "optional": true, + "dependencies": { + "@napi-rs/wasm-runtime": "^0.2.11" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@oxc-parser/binding-win32-arm64-msvc": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-0.76.0.tgz", + "integrity": "sha512-G7ZlEWcb2hNwCK3qalzqJoyB6HaTigQ/GEa7CU8sAJ/WwMdG/NnPqiC9IqpEAEy1ARSo4XMALfKbKNuqbSs5mg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@oxc-parser/binding-win32-x64-msvc": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@oxc-parser/binding-win32-x64-msvc/-/binding-win32-x64-msvc-0.76.0.tgz", + "integrity": "sha512-0jLzzmnu8/mqNhKBnNS2lFUbPEzRdj5ReiZwHGHpjma0+ullmmwP2AqSEqx3ssHDK9CpcEMdKOK2LsbCfhHKIA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20.0.0" + } + }, "node_modules/@oxc-project/runtime": { "version": "0.73.2", "resolved": "https://registry.npmjs.org/@oxc-project/runtime/-/runtime-0.73.2.tgz", @@ -3445,6 +3692,7 @@ "version": "12.1.0", "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", + "dev": true, "license": "MIT", "engines": { "node": ">=18" @@ -5392,6 +5640,47 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/oxc-parser": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/oxc-parser/-/oxc-parser-0.76.0.tgz", + "integrity": "sha512-l98B2e9evuhES7zN99rb1QGhbzx25829TJFaKi2j0ib3/K/G5z1FdGYz6HZkrU3U8jdH7v2FC8mX1j2l9JrOUg==", + "license": "MIT", + "dependencies": { + "@oxc-project/types": "^0.76.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/Boshen" + }, + "optionalDependencies": { + "@oxc-parser/binding-android-arm64": "0.76.0", + "@oxc-parser/binding-darwin-arm64": "0.76.0", + "@oxc-parser/binding-darwin-x64": "0.76.0", + "@oxc-parser/binding-freebsd-x64": "0.76.0", + "@oxc-parser/binding-linux-arm-gnueabihf": "0.76.0", + "@oxc-parser/binding-linux-arm-musleabihf": "0.76.0", + "@oxc-parser/binding-linux-arm64-gnu": "0.76.0", + "@oxc-parser/binding-linux-arm64-musl": "0.76.0", + "@oxc-parser/binding-linux-riscv64-gnu": "0.76.0", + "@oxc-parser/binding-linux-s390x-gnu": "0.76.0", + "@oxc-parser/binding-linux-x64-gnu": "0.76.0", + "@oxc-parser/binding-linux-x64-musl": "0.76.0", + "@oxc-parser/binding-wasm32-wasi": "0.76.0", + "@oxc-parser/binding-win32-arm64-msvc": "0.76.0", + "@oxc-parser/binding-win32-x64-msvc": "0.76.0" + } + }, + "node_modules/oxc-parser/node_modules/@oxc-project/types": { + "version": "0.76.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.76.0.tgz", + "integrity": "sha512-CH3THIrSViKal8yV/Wh3FK0pFhp40nzW1MUDCik9fNuid2D/7JJXKJnfFOAvMxInGXDlvmgT6ACAzrl47TqzkQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/Boshen" + } + }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -6772,7 +7061,7 @@ "zustand": "^5.0.6" }, "devDependencies": { - "@bytecodealliance/jco": "^1.11.2", + "@bytecodealliance/jco": "^1.13.2", "@playwright/test": "^1.54.1", "@tailwindcss/vite": "^4.1.11", "@types/node": "^24.0.4", diff --git a/packages/web-host/package.json b/packages/web-host/package.json index 50bd797..47c82fa 100644 --- a/packages/web-host/package.json +++ b/packages/web-host/package.json @@ -39,7 +39,7 @@ "zustand": "^5.0.6" }, "devDependencies": { - "@bytecodealliance/jco": "^1.11.2", + "@bytecodealliance/jco": "^1.13.2", "@playwright/test": "^1.54.1", "@tailwindcss/vite": "^4.1.11", "@types/node": "^24.0.4", From 241a2f3d00d0fe13b2e2e7877866c4df126a6151 Mon Sep 17 00:00:00 2001 From: Christophe Rosset Date: Mon, 18 Aug 2025 15:45:58 +0200 Subject: [PATCH 3/6] chore(pluginlab): upgrade wasmtime from v33 to v35 + fix compile errors The add_to_linker function calls were failing type inference because the compiler couldn't determine the generic parameter D that represents the data access pattern. - Add explicit type annotations for PluginApi::add_to_linker using HasSelf to specify that the host state provides access to PluginHost - Add explicit type annotations for HostApi::add_to_linker using HasSelf to specify that the host state provides access to the entire WasiState This resolves the "type annotations needed" compilation errors by satisfying the HasData trait bounds required by Wasmtime's component model. Fixes: E0283 type inference errors in engine.rs --- Cargo.lock | 343 +++++++++++++++++---------------- Cargo.toml | 4 +- crates/pluginlab/src/engine.rs | 10 +- 3 files changed, 188 insertions(+), 169 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 68b3321..4ee90cd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -376,36 +376,36 @@ dependencies = [ [[package]] name = "cranelift-assembler-x64" -version = "0.120.0" +version = "0.122.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ff8e35182c7372df00447cb90a04e584e032c42b9b9b6e8c50ddaaf0d7900d5" +checksum = "0ae7b60ec3fd7162427d3b3801520a1908bef7c035b52983cd3ca11b8e7deb51" dependencies = [ "cranelift-assembler-x64-meta", ] [[package]] name = "cranelift-assembler-x64-meta" -version = "0.120.0" +version = "0.122.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14220f9c2698015c3b94dc6b84ae045c1c45509ddc406e43c6139252757fdb7a" +checksum = "6511c200fed36452697b4b6b161eae57d917a2044e6333b1c1389ed63ccadeee" dependencies = [ "cranelift-srcgen", ] [[package]] name = "cranelift-bforest" -version = "0.120.0" +version = "0.122.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d372ef2777ceefd75829e1390211ac240e9196bc60699218f7ea2419038288ee" +checksum = "5f7086a645aa58bae979312f64e3029ac760ac1b577f5cd2417844842a2ca07f" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-bitset" -version = "0.120.0" +version = "0.122.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56323783e423818fa89ce8078e90a3913d2a6e0810399bfce8ebd7ee87baa81f" +checksum = "5225b4dec45f3f3dbf383f12560fac5ce8d780f399893607e21406e12e77f491" dependencies = [ "serde", "serde_derive", @@ -413,9 +413,9 @@ dependencies = [ [[package]] name = "cranelift-codegen" -version = "0.120.0" +version = "0.122.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74ffb780aab6186c6e9ba26519654b1ac55a09c0a866f6088a4efbbd84da68ed" +checksum = "858fb3331e53492a95979378d6df5208dd1d0d315f19c052be8115f4efc888e0" dependencies = [ "bumpalo", "cranelift-assembler-x64", @@ -438,13 +438,14 @@ dependencies = [ "sha2", "smallvec", "target-lexicon", + "wasmtime-internal-math", ] [[package]] name = "cranelift-codegen-meta" -version = "0.120.0" +version = "0.122.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c23ef13814d3b39c869650d5961128cbbecad83fbdff4e6836a03ecf6862d7ed" +checksum = "456715b9d5f12398f156d5081096e7b5d039f01b9ecc49790a011c8e43e65b5f" dependencies = [ "cranelift-assembler-x64-meta", "cranelift-codegen-shared", @@ -454,24 +455,24 @@ dependencies = [ [[package]] name = "cranelift-codegen-shared" -version = "0.120.0" +version = "0.122.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9f623300657679f847803ce80811454bfff89cea4f6bf684be5c468d4a73631" +checksum = "0306041099499833f167a0ddb707e1e54100f1a84eab5631bc3dad249708f482" [[package]] name = "cranelift-control" -version = "0.120.0" +version = "0.122.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31f4168af69989aa6b91fab46799ed4df6096f3209f4a6c8fb4358f49c60188f" +checksum = "1672945e1f9afc2297f49c92623f5eabc64398e2cb0d824f8f72a2db2df5af23" dependencies = [ "arbitrary", ] [[package]] name = "cranelift-entity" -version = "0.120.0" +version = "0.122.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca6fa9bae1c8de26d71ac2162f069447610fd91e7780cb480ee0d76ac81eabb8" +checksum = "aa3cd55eb5f3825b9ae5de1530887907360a6334caccdc124c52f6d75246c98a" dependencies = [ "cranelift-bitset", "serde", @@ -480,9 +481,9 @@ dependencies = [ [[package]] name = "cranelift-frontend" -version = "0.120.0" +version = "0.122.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8219205608aa0b0e6769b580284a7e055c7e0c323c1041cde7ca078add3e412" +checksum = "781f9905f8139b8de22987b66b522b416fe63eb76d823f0b3a8c02c8fd9500c7" dependencies = [ "cranelift-codegen", "log", @@ -492,15 +493,15 @@ dependencies = [ [[package]] name = "cranelift-isle" -version = "0.120.0" +version = "0.122.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "588d0c5964f10860b04043e55aab26d7f7a206b0fd4f10c5260e8aa5773832bd" +checksum = "a05337a2b02c3df00b4dd9a263a027a07b3dff49f61f7da3b5d195c21eaa633d" [[package]] name = "cranelift-native" -version = "0.120.0" +version = "0.122.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19ed3c94cb97b14f92b6a94a1d45ef8c851f6a2ad9114e5d91d233f7da638fed" +checksum = "2eee7a496dd66380082c9c5b6f2d5fa149cec0ec383feec5caf079ca2b3671c2" dependencies = [ "cranelift-codegen", "libc", @@ -509,9 +510,9 @@ dependencies = [ [[package]] name = "cranelift-srcgen" -version = "0.120.0" +version = "0.122.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85256fac1519a7d25a040c1d850fba67478f3f021ad5fdf738ba4425ee862dbf" +checksum = "b530783809a55cb68d070e0de60cfbb3db0dc94c8850dd5725411422bedcf6bb" [[package]] name = "crc32fast" @@ -1526,23 +1527,26 @@ dependencies = [ ] [[package]] -name = "psm" -version = "0.1.26" +name = "pulley-interpreter" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e944464ec8536cd1beb0bbfd96987eb5e3b72f2ecdafdc5c769a37f1fa2ae1f" +checksum = "b89c4319786b16c1a6a38ee04788d32c669b61ba4b69da2162c868c18be99c1b" dependencies = [ - "cc", + "cranelift-bitset", + "log", + "pulley-macros", + "wasmtime-internal-math", ] [[package]] -name = "pulley-interpreter" -version = "33.0.0" +name = "pulley-macros" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aeb99cb5a3ada8e95a246d09f5fdb609f021bf740efd3ca9bddf458e3293a6a0" +checksum = "938543690519c20c3a480d20a8efcc8e69abeb44093ab1df4e7c1f81f26c677a" dependencies = [ - "cranelift-bitset", - "log", - "wasmtime-math", + "proc-macro2", + "quote", + "syn", ] [[package]] @@ -1972,12 +1976,6 @@ dependencies = [ "windows-sys 0.52.0", ] -[[package]] -name = "sptr" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b9b39299b249ad65f3b7e96443bad61c02ca5cd3589f46cb6d610a0fd6c0d6a" - [[package]] name = "stable_deref_trait" version = "1.2.0" @@ -2453,9 +2451,9 @@ dependencies = [ [[package]] name = "wasm-encoder" -version = "0.229.0" +version = "0.235.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38ba1d491ecacb085a2552025c10a675a6fddcbd03b1fc9b36c536010ce265d2" +checksum = "b3bc393c395cb621367ff02d854179882b9a351b4e0c93d1397e6090b53a5c2a" dependencies = [ "leb128fmt", "wasmparser", @@ -2463,9 +2461,9 @@ dependencies = [ [[package]] name = "wasmparser" -version = "0.229.0" +version = "0.235.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0cc3b1f053f5d41aa55640a1fa9b6d1b8a9e4418d118ce308d20e24ff3575a8c" +checksum = "161296c618fa2d63f6ed5fffd1112937e803cb9ec71b32b01a76321555660917" dependencies = [ "bitflags 2.9.1", "hashbrown", @@ -2476,9 +2474,9 @@ dependencies = [ [[package]] name = "wasmprinter" -version = "0.229.0" +version = "0.235.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d25dac01892684a99b8fbfaf670eb6b56edea8a096438c75392daeb83156ae2e" +checksum = "75aa8e9076de6b9544e6dab4badada518cca0bf4966d35b131bbd057aed8fa0a" dependencies = [ "anyhow", "termcolor", @@ -2487,9 +2485,9 @@ dependencies = [ [[package]] name = "wasmtime" -version = "33.0.0" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15396de4fce22e431aa913a9d17325665e72a39aaa7972c8aeae7507eff6144f" +checksum = "b6fe976922a16af3b0d67172c473d1fd4f1aa5d0af9c8ba6538c741f3af686f4" dependencies = [ "addr2line", "anyhow", @@ -2508,7 +2506,6 @@ dependencies = [ "object", "once_cell", "postcard", - "psm", "pulley-interpreter", "rayon", "rustix 1.0.7", @@ -2516,59 +2513,86 @@ dependencies = [ "serde", "serde_derive", "smallvec", - "sptr", "target-lexicon", "trait-variant", "wasmparser", - "wasmtime-asm-macros", - "wasmtime-component-macro", - "wasmtime-component-util", - "wasmtime-cranelift", "wasmtime-environ", - "wasmtime-fiber", - "wasmtime-jit-icache-coherence", - "wasmtime-math", - "wasmtime-slab", - "wasmtime-versioned-export-macros", - "wasmtime-winch", + "wasmtime-internal-asm-macros", + "wasmtime-internal-component-macro", + "wasmtime-internal-component-util", + "wasmtime-internal-cranelift", + "wasmtime-internal-fiber", + "wasmtime-internal-jit-icache-coherence", + "wasmtime-internal-math", + "wasmtime-internal-slab", + "wasmtime-internal-unwinder", + "wasmtime-internal-versioned-export-macros", + "wasmtime-internal-winch", "windows-sys 0.59.0", ] [[package]] -name = "wasmtime-asm-macros" -version = "33.0.0" +name = "wasmtime-environ" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8d13b1a25d9b77ce42b4641a797e8c0bde0643b9ad5aaa36ce7e00cf373ffab" +checksum = "44b6264a78d806924abbc76bbc75eac24976bc83bdfb938e5074ae551242436f" +dependencies = [ + "anyhow", + "cpp_demangle", + "cranelift-bitset", + "cranelift-entity", + "gimli", + "indexmap", + "log", + "object", + "postcard", + "rustc-demangle", + "semver", + "serde", + "serde_derive", + "smallvec", + "target-lexicon", + "wasm-encoder", + "wasmparser", + "wasmprinter", + "wasmtime-internal-component-util", +] + +[[package]] +name = "wasmtime-internal-asm-macros" +version = "35.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6775a9b516559716e5710e95a8014ca0adcc81e5bf4d3ad7899d89ae40094d1a" dependencies = [ "cfg-if", ] [[package]] -name = "wasmtime-component-macro" -version = "33.0.0" +name = "wasmtime-internal-component-macro" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be73f1c13b25cf7c062ea2f3aba8a92abe4284a14b49e866e4962824802da5cf" +checksum = "dc3d098205e405e6b5ced06c1815621b823464b6ea289eaafe494139b0aee287" dependencies = [ "anyhow", "proc-macro2", "quote", "syn", - "wasmtime-component-util", - "wasmtime-wit-bindgen", + "wasmtime-internal-component-util", + "wasmtime-internal-wit-bindgen", "wit-parser", ] [[package]] -name = "wasmtime-component-util" -version = "33.0.0" +name = "wasmtime-internal-component-util" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cba282555a9f2443f4e40e415772ea98acabbc341e9b3b905f541ff304cbc5e" +checksum = "219252067216242ed2b32665611b0ee356d6e92cbb897ecb9a10cae0b97bdeca" [[package]] -name = "wasmtime-cranelift" -version = "33.0.0" +name = "wasmtime-internal-cranelift" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0c2c2e083dc4c119cca61cc42ca6b3711b75ed9823f77b684ee009c74f939d8" +checksum = "7ec9ad7565e6a8de7cb95484e230ff689db74a4a085219e0da0cbd637a29c01c" dependencies = [ "anyhow", "cfg-if", @@ -2587,56 +2611,31 @@ dependencies = [ "thiserror 2.0.12", "wasmparser", "wasmtime-environ", - "wasmtime-versioned-export-macros", + "wasmtime-internal-math", + "wasmtime-internal-versioned-export-macros", ] [[package]] -name = "wasmtime-environ" -version = "33.0.0" +name = "wasmtime-internal-fiber" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "357542664493b1359727f235b615ae74f63bd46aa4d0c587b09e3b060eb0b8ef" -dependencies = [ - "anyhow", - "cpp_demangle", - "cranelift-bitset", - "cranelift-entity", - "gimli", - "indexmap", - "log", - "object", - "postcard", - "rustc-demangle", - "semver", - "serde", - "serde_derive", - "smallvec", - "target-lexicon", - "wasm-encoder", - "wasmparser", - "wasmprinter", - "wasmtime-component-util", -] - -[[package]] -name = "wasmtime-fiber" -version = "33.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d83e697b13d6ae9eff31edac86673aabaf8dbf20267f2aa20e831dd01da480a3" +checksum = "8b636ff8b220ebaf29dfe3b23770e4b2bad317b9683e3bf7345e162387385b39" dependencies = [ "anyhow", "cc", "cfg-if", + "libc", "rustix 1.0.7", - "wasmtime-asm-macros", - "wasmtime-versioned-export-macros", + "wasmtime-internal-asm-macros", + "wasmtime-internal-versioned-export-macros", "windows-sys 0.59.0", ] [[package]] -name = "wasmtime-jit-icache-coherence" -version = "33.0.0" +name = "wasmtime-internal-jit-icache-coherence" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "175e924dbc944c185808466d1e90b5a7feb610f3b9abdfe26f8ee25fd1086d1c" +checksum = "4417e06b7f80baff87d9770852c757a39b8d7f11d78b2620ca992b8725f16f50" dependencies = [ "anyhow", "cfg-if", @@ -2645,36 +2644,78 @@ dependencies = [ ] [[package]] -name = "wasmtime-math" -version = "33.0.0" +name = "wasmtime-internal-math" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d9448adcd9c5980c0eac1630794bd1be3cf573c28d0630f7d3184405b36bcfe" +checksum = "7710d5c4ecdaa772927fd11e5dc30a9a62d1fc8fe933e11ad5576ad596ab6612" dependencies = [ "libm", ] [[package]] -name = "wasmtime-slab" -version = "33.0.0" +name = "wasmtime-internal-slab" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b50f7c227d6a925d9dfd0fbfdbf06877cb2fe387bb3248049706b19b5f86e560" +checksum = "e6ab22fabe1eed27ab01fd47cd89deacf43ad222ed7fd169ba6f4dd1fbddc53b" [[package]] -name = "wasmtime-versioned-export-macros" -version = "33.0.0" +name = "wasmtime-internal-unwinder" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55b39ffeda28be925babb2d45067d8ba2c67d2227328c5364d23b4152eba9950" +checksum = "307708f302f5dcf19c1bbbfb3d9f2cbc837dd18088a7988747b043a46ba38ecc" +dependencies = [ + "anyhow", + "cfg-if", + "cranelift-codegen", + "log", + "object", +] + +[[package]] +name = "wasmtime-internal-versioned-export-macros" +version = "35.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "342b0466f92b7217a4de9e114175fedee1907028567d2548bcd42f71a8b5b016" dependencies = [ "proc-macro2", "quote", "syn", ] +[[package]] +name = "wasmtime-internal-winch" +version = "35.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2012e7384c25b91aab2f1b6a1e1cbab9d0f199bbea06cc873597a3f047f05730" +dependencies = [ + "anyhow", + "cranelift-codegen", + "gimli", + "object", + "target-lexicon", + "wasmparser", + "wasmtime-environ", + "wasmtime-internal-cranelift", + "winch-codegen", +] + +[[package]] +name = "wasmtime-internal-wit-bindgen" +version = "35.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ae057d44a5b60e6ec529b0c21809a9d1fc92e91ef6e0f6771ed11dd02a94a08" +dependencies = [ + "anyhow", + "heck", + "indexmap", + "wit-parser", +] + [[package]] name = "wasmtime-wasi" -version = "33.0.0" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d357e5699ed32103d0dab897c3965fd66f1ba29a37072d441199e7febe6324e" +checksum = "6d252bc54438b6b979320dc48fe8328429761aaef62cee12a848b0389b1f255c" dependencies = [ "anyhow", "async-trait", @@ -2703,9 +2744,9 @@ dependencies = [ [[package]] name = "wasmtime-wasi-io" -version = "33.0.0" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43418871afd46c188231e4d822d375c0660c7a1484db3f7f247e552186e971a2" +checksum = "7b2664b7dabe650a102559ae49108fb00f884f319aadefcf20806ab5f2dbd535" dependencies = [ "anyhow", "async-trait", @@ -2714,35 +2755,6 @@ dependencies = [ "wasmtime", ] -[[package]] -name = "wasmtime-winch" -version = "33.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f180e6a8c0724608cd2d55ceb7d03ed3a729ca78fcd34a6756f36cf9a5fd546" -dependencies = [ - "anyhow", - "cranelift-codegen", - "gimli", - "object", - "target-lexicon", - "wasmparser", - "wasmtime-cranelift", - "wasmtime-environ", - "winch-codegen", -] - -[[package]] -name = "wasmtime-wit-bindgen" -version = "33.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f8d793a398e2974d562e65c8d366f39a942fe1ce7970244d9d6e5f96f29b534" -dependencies = [ - "anyhow", - "heck", - "indexmap", - "wit-parser", -] - [[package]] name = "wast" version = "35.0.2" @@ -2764,9 +2776,9 @@ dependencies = [ [[package]] name = "wiggle" -version = "33.0.0" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73aed697b5eb6a5726dca57f85199f73c61dee669e58faab71086eb7eda6b077" +checksum = "fc3ea480ce117a35b61e466e4f77422f2b29f744400e05de3ad87d73b8a1877c" dependencies = [ "anyhow", "async-trait", @@ -2779,9 +2791,9 @@ dependencies = [ [[package]] name = "wiggle-generate" -version = "33.0.0" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d477015cda1d476b7e45d50eeb93d9038df8f24827007669065292651b26d225" +checksum = "cec945b902cacd960fe5d441b60146b24639d81b887451a30bf86824a8185d79" dependencies = [ "anyhow", "heck", @@ -2793,9 +2805,9 @@ dependencies = [ [[package]] name = "wiggle-macro" -version = "33.0.0" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71ac603ee46847d2e3c142ba715d326f1045155c7758f4e8dd001d5f92810c12" +checksum = "f5872fbe512b73acd514e7ef5bd5aee0ff951a12c1fed0293e1f7992de30df9f" dependencies = [ "proc-macro2", "quote", @@ -2814,9 +2826,9 @@ dependencies = [ [[package]] name = "winch-codegen" -version = "33.0.0" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad3072bf7c270d5e29a3d69744c81665dd3adb6e60f123925393a1c150bf9ec4" +checksum = "839a334ef7c62d8368dbd427e767a6fbb1ba08cc12ecce19cbb666c10613b585" dependencies = [ "anyhow", "cranelift-assembler-x64", @@ -2827,8 +2839,9 @@ dependencies = [ "target-lexicon", "thiserror 2.0.12", "wasmparser", - "wasmtime-cranelift", "wasmtime-environ", + "wasmtime-internal-cranelift", + "wasmtime-internal-math", ] [[package]] @@ -3013,9 +3026,9 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.229.0" +version = "0.235.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "459c6ba62bf511d6b5f2a845a2a736822e38059c1cfa0b644b467bbbfae4efa6" +checksum = "0a1f95a87d03a33e259af286b857a95911eb46236a0f726cbaec1227b3dfc67a" dependencies = [ "anyhow", "id-arena", diff --git a/Cargo.toml b/Cargo.toml index 3785940..f2da12a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ license = "MIT" authors = ["Christophe Rosset "] [workspace.dependencies] -wasmtime = { version = "33", default-features = false, features = [ +wasmtime = { version = "35", default-features = false, features = [ "async", "demangle", "runtime", @@ -38,7 +38,7 @@ wasmtime = { version = "33", default-features = false, features = [ "incremental-cache", "parallel-compilation", ] } -wasmtime-wasi = "33" +wasmtime-wasi = "35" clap = { version = "4.5", features = ["derive"] } tokio = { version = "1.36", features = ["full"] } anyhow = "1.0" diff --git a/crates/pluginlab/src/engine.rs b/crates/pluginlab/src/engine.rs index 3a00671..9d379f5 100644 --- a/crates/pluginlab/src/engine.rs +++ b/crates/pluginlab/src/engine.rs @@ -157,7 +157,10 @@ impl WasmEngine { wasmtime_wasi::p2::add_to_linker_async(&mut linker)?; // Add the plugin API interface with host implementation - PluginApi::add_to_linker(&mut linker, |state: &mut WasiState| &mut state.plugin_host)?; + PluginApi::add_to_linker::>( + &mut linker, + |state: &mut WasiState| &mut state.plugin_host, + )?; // Instantiate the component and get the plugin interface let plugin = PluginApi::instantiate_async(store, &component, &linker).await?; @@ -174,7 +177,10 @@ impl WasmEngine { wasmtime_wasi::p2::add_to_linker_sync(&mut linker)?; // Add the host API interface with host implementation - HostApi::add_to_linker(&mut linker, |state: &mut WasiState| state)?; + HostApi::add_to_linker::>( + &mut linker, + |state: &mut WasiState| state, + )?; let repl_logic = HostApi::instantiate_async(store, &component, &linker).await?; Ok(repl_logic) From 4e5f09bc7c2ac154f13aeed84df9d7b0356675a3 Mon Sep 17 00:00:00 2001 From: Christophe Rosset Date: Mon, 18 Aug 2025 16:18:25 +0200 Subject: [PATCH 4/6] chore: upgrade wit-bindgen-rt / wit-bindgen-cli to v0.44.0 --- .github/workflows/rust-host.yml | 2 +- .github/workflows/web-host.yml | 2 +- Cargo.lock | 18 +++++++++--------- Cargo.toml | 2 +- README.md | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/rust-host.yml b/.github/workflows/rust-host.yml index cc4b9d0..c3f5941 100644 --- a/.github/workflows/rust-host.yml +++ b/.github/workflows/rust-host.yml @@ -32,7 +32,7 @@ jobs: - name: Install wasm-tools run: cargo binstall wasm-tools@1.235.0 - name: Install wit-bindgen - run: cargo install wit-bindgen-cli@0.43.0 + run: cargo install wit-bindgen-cli@0.44.0 - name: Install wasi-sdk run: | mkdir c_deps diff --git a/.github/workflows/web-host.yml b/.github/workflows/web-host.yml index 8ff5e89..f6ffbc8 100644 --- a/.github/workflows/web-host.yml +++ b/.github/workflows/web-host.yml @@ -35,7 +35,7 @@ jobs: - name: Install wasm-tools run: cargo binstall wasm-tools@1.235.0 - name: Install wit-bindgen - run: cargo install wit-bindgen-cli@0.43.0 + run: cargo install wit-bindgen-cli@0.44.0 - name: Install wasi-sdk run: | mkdir c_deps diff --git a/Cargo.lock b/Cargo.lock index 4ee90cd..c52bf60 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1434,35 +1434,35 @@ checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" name = "plugin-cat" version = "0.1.0" dependencies = [ - "wit-bindgen-rt 0.42.1", + "wit-bindgen-rt 0.44.0", ] [[package]] name = "plugin-echo" version = "0.1.0" dependencies = [ - "wit-bindgen-rt 0.42.1", + "wit-bindgen-rt 0.44.0", ] [[package]] name = "plugin-greet" version = "0.1.0" dependencies = [ - "wit-bindgen-rt 0.42.1", + "wit-bindgen-rt 0.44.0", ] [[package]] name = "plugin-ls" version = "0.1.0" dependencies = [ - "wit-bindgen-rt 0.42.1", + "wit-bindgen-rt 0.44.0", ] [[package]] name = "plugin-tee" version = "0.1.0" dependencies = [ - "wit-bindgen-rt 0.42.1", + "wit-bindgen-rt 0.44.0", ] [[package]] @@ -1471,7 +1471,7 @@ version = "0.1.0" dependencies = [ "serde", "serde_json", - "wit-bindgen-rt 0.42.1", + "wit-bindgen-rt 0.44.0", ] [[package]] @@ -1671,7 +1671,7 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" name = "repl-logic-guest" version = "0.1.0" dependencies = [ - "wit-bindgen-rt 0.42.1", + "wit-bindgen-rt 0.44.0", ] [[package]] @@ -3017,9 +3017,9 @@ dependencies = [ [[package]] name = "wit-bindgen-rt" -version = "0.42.1" +version = "0.44.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "051105bab12bc78e161f8dfb3596e772dd6a01ebf9c4840988e00347e744966a" +checksum = "653c85dd7aee6fe6f4bded0d242406deadae9819029ce6f7d258c920c384358a" dependencies = [ "bitflags 2.9.1", ] diff --git a/Cargo.toml b/Cargo.toml index f2da12a..1bd9f92 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,4 +42,4 @@ wasmtime-wasi = "35" clap = { version = "4.5", features = ["derive"] } tokio = { version = "1.36", features = ["full"] } anyhow = "1.0" -wit-bindgen-rt = { version = "0.42.1", features = ["bitflags"] } +wit-bindgen-rt = { version = "0.44.0", features = ["bitflags"] } diff --git a/README.md b/README.md index bdcf6a1..263b0bc 100644 --- a/README.md +++ b/README.md @@ -186,7 +186,7 @@ just init-env-file ``` ```bash -cargo install wit-bindgen-cli@0.43.0 +cargo install wit-bindgen-cli@0.44.0 ``` ```bash @@ -420,7 +420,7 @@ Those are **optional** tools that are handy for WebAssembly development: - [cargo component 0.21.1+](https://github.com/bytecodealliance/cargo-component?tab=readme-ov-file#installation) - [wasm-tools 1.235.0](https://github.com/bytecodealliance/wasm-tools?tab=readme-ov-file#installation) - [wasm-opt 116](https://github.com/WebAssembly/binaryen?tab=readme-ov-file#installation) -- [wit-bindgen-cli 0.43.0](https://github.com/bytecodealliance/wit-bindgen) +- [wit-bindgen-cli 0.44.0](https://github.com/bytecodealliance/wit-bindgen) ```bash # latest versions From f7ae1d2967ce92df4c0dca07b2d4b4d10e4cecb0 Mon Sep 17 00:00:00 2001 From: Christophe Rosset Date: Mon, 18 Aug 2025 16:33:22 +0200 Subject: [PATCH 5/6] chore: upgrade tokio from 1.36 to 1.47.1 (latest) --- Cargo.lock | 33 ++++++++++++++++++++++++++++----- Cargo.toml | 2 +- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c52bf60..b0e267a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -942,7 +942,7 @@ dependencies = [ "libc", "percent-encoding", "pin-project-lite", - "socket2", + "socket2 0.5.10", "system-configuration", "tokio", "tower-service", @@ -1114,6 +1114,17 @@ version = "2.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "06432fb54d3be7964ecd3649233cddf80db2832f47fec34c01f65b3d9d774983" +[[package]] +name = "io-uring" +version = "0.7.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d93587f37623a1a17d94ef2bc9ada592f5465fe7732084ab7beefabe5c77c0c4" +dependencies = [ + "bitflags 2.9.1", + "cfg-if", + "libc", +] + [[package]] name = "ipnet" version = "2.11.0" @@ -1976,6 +1987,16 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "socket2" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "233504af464074f9d066d7b5416c5f9b894a5862a6506e306f7b816cdd6f1807" +dependencies = [ + "libc", + "windows-sys 0.59.0", +] + [[package]] name = "stable_deref_trait" version = "1.2.0" @@ -2142,20 +2163,22 @@ dependencies = [ [[package]] name = "tokio" -version = "1.45.1" +version = "1.47.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75ef51a33ef1da925cea3e4eb122833cb377c61439ca401b770f54902b806779" +checksum = "89e49afdadebb872d3145a5638b59eb0691ea23e46ca484037cfab3b76b95038" dependencies = [ "backtrace", "bytes", + "io-uring", "libc", "mio", "parking_lot", "pin-project-lite", "signal-hook-registry", - "socket2", + "slab", + "socket2 0.6.0", "tokio-macros", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 1bd9f92..f34bb7a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,6 +40,6 @@ wasmtime = { version = "35", default-features = false, features = [ ] } wasmtime-wasi = "35" clap = { version = "4.5", features = ["derive"] } -tokio = { version = "1.36", features = ["full"] } +tokio = { version = "1.47.1", features = ["full"] } anyhow = "1.0" wit-bindgen-rt = { version = "0.44.0", features = ["bitflags"] } From 47fb9ffdcc0d1b0ef2ba68d01f17e244aeab2d21 Mon Sep 17 00:00:00 2001 From: Christophe Rosset Date: Mon, 18 Aug 2025 16:50:27 +0200 Subject: [PATCH 6/6] chore: upgrade wasi-sdk from v25 to v27 --- .env.original | 2 +- .github/workflows/rust-host.yml | 4 ++-- .github/workflows/web-host.yml | 4 ++-- justfile | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.env.original b/.env.original index 2ed2b76..1ac8d20 100644 --- a/.env.original +++ b/.env.original @@ -1,5 +1,5 @@ # see https://github.com/WebAssembly/wasi-sdk/releases for exact possibilities WASI_OS=macos # 'macos' | 'linux' | ''windows' WASI_ARCH=x86_64 # 'x86_64' | 'arm64' -WASI_VERSION=25 +WASI_VERSION=27 WASI_VERSION_FULL=${WASI_VERSION}.0 diff --git a/.github/workflows/rust-host.yml b/.github/workflows/rust-host.yml index c3f5941..780f60c 100644 --- a/.github/workflows/rust-host.yml +++ b/.github/workflows/rust-host.yml @@ -17,8 +17,8 @@ jobs: else echo "WASI_OS=linux" >> $GITHUB_ENV fi - echo "WASI_VERSION_FULL=25.0" >> $GITHUB_ENV - echo "WASI_VERSION=25" >> $GITHUB_ENV + echo "WASI_VERSION_FULL=27.0" >> $GITHUB_ENV + echo "WASI_VERSION=27" >> $GITHUB_ENV - uses: actions/checkout@v4 - uses: actions-rs/toolchain@v1 with: diff --git a/.github/workflows/web-host.yml b/.github/workflows/web-host.yml index f6ffbc8..9751fa0 100644 --- a/.github/workflows/web-host.yml +++ b/.github/workflows/web-host.yml @@ -17,8 +17,8 @@ jobs: else echo "WASI_OS=linux" >> $GITHUB_ENV fi - echo "WASI_VERSION_FULL=25.0" >> $GITHUB_ENV - echo "WASI_VERSION=25" >> $GITHUB_ENV + echo "WASI_VERSION_FULL=27.0" >> $GITHUB_ENV + echo "WASI_VERSION=27" >> $GITHUB_ENV - uses: actions/checkout@v4 - uses: actions-rs/toolchain@v1 with: diff --git a/justfile b/justfile index e6b0420..319d7e5 100644 --- a/justfile +++ b/justfile @@ -18,6 +18,7 @@ dl-wasi-sdk: FILENAME=wasi-sdk-${WASI_VERSION_FULL}-${WASI_ARCH}-${WASI_OS}.tar.gz curl -L -o c_deps/${FILENAME} https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_VERSION}/${FILENAME} tar -C c_deps -xvf c_deps/${FILENAME} + rm -rf c_deps/wasi-sdk mv c_deps/wasi-sdk-${WASI_VERSION_FULL}-${WASI_ARCH}-${WASI_OS} c_deps/wasi-sdk # Generate the C bindings for the plugin