Skip to content

Commit ac27ebe

Browse files
committed
fix: resolve build issues and upgrade remaining dependencies
- Fix checksum_updater_wasm missing dependencies (anyhow, chrono, hex) - Fix wit_bindgen_with_mappings incorrect dependency patterns - Complete aot_example with missing source files and proper structure - Fix integer optimization levels in wasm toolchain files - Upgrade wasm-encoder 0.236.1 → 0.237.0 - Upgrade wit-parser 0.221.3 → 0.237.0 - Update examples to use modern rust_wasm_component_bindgen pattern Resolves dependabot PRs #97 and #69 by manual upgrade
1 parent e3f384b commit ac27ebe

File tree

93 files changed

+3007
-2241
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+3007
-2241
lines changed

.github/workflows/bcr-compatibility.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ on:
1111
workflow_dispatch:
1212
inputs:
1313
test_target:
14-
description: 'Specific target to test (default: //examples/basic:hello_component)'
14+
description: "Specific target to test (default: //examples/basic:hello_component)"
1515
required: false
16-
default: '//examples/basic:hello_component'
16+
default: "//examples/basic:hello_component"
1717
timeout_minutes:
18-
description: 'Timeout in minutes (default: 15)'
18+
description: "Timeout in minutes (default: 15)"
1919
required: false
20-
default: '15'
20+
default: "15"
2121

2222
env:
2323
DOCKER_IMAGE: gcr.io/bazel-public/ubuntu2204

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- name: Install Node.js
8383
uses: actions/setup-node@v5
8484
with:
85-
node-version: '18'
85+
node-version: "18"
8686

8787
- name: Verify Bazel Installation
8888
run: bazel version
@@ -198,7 +198,7 @@ jobs:
198198
- name: Install Node.js
199199
uses: actions/setup-node@v5
200200
with:
201-
node-version: '18'
201+
node-version: "18"
202202

203203
- name: Verify Bazel Installation
204204
run: bazel version

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@ repos:
4747
files: '\.(js|ts|jsx|tsx|json|yaml|yml|md|mdx|astro|css)$'
4848
exclude: '(package-lock\.json|\.lock)$'
4949
additional_dependencies:
50-
- 'prettier-plugin-astro@^0.14.0'
50+
- "prettier-plugin-astro@^0.14.0"
5151

5252
# Markdown linting
5353
- repo: https://github.com/igorshubovych/markdownlint-cli
5454
rev: v0.42.0
5555
hooks:
5656
- id: markdownlint
57-
args: ['--fix']
57+
args: ["--fix"]
5858
files: '\.(md|mdx)$'
59-
exclude: '^docs-site/node_modules/'
59+
exclude: "^docs-site/node_modules/"
6060

6161
# General file checks
6262
- repo: https://github.com/pre-commit/pre-commit-hooks

MODULE.bazel.lock

Lines changed: 809 additions & 777 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ rust_wasm_component_bindgen(
3939
## Known Limitations
4040

4141
### Go WIT Components (Temporary)
42+
4243
- **Issue**: WIT-enabled Go components currently fail due to upstream TinyGo limitations
4344
- **Tracking**: [GitHub Issue #82](https://github.com/pulseengine/rules_wasm_component/issues/82)
4445
- **Status**: Excluded from CI until [TinyGo PR #4934](https://github.com/tinygo-org/tinygo/pull/4934) lands
4546
- **Workaround**: Basic Go components (without WIT) work perfectly
4647

4748
### C++ Exception Handling
49+
4850
- **Design**: WASI disables C++ exceptions by default for size/performance
4951
- **Solution**: Components use error codes instead of exceptions ([Issue #83](https://github.com/pulseengine/rules_wasm_component/issues/83))
5052
- **Override**: Use `enable_exceptions = True` for components that require exceptions

SYMMETRIC_IMPLEMENTATION.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,14 @@ bazel build //examples/symmetric_example:test_symmetric_compilation # Test suite
145145

146146
## Official vs Fork Feature Matrix
147147

148-
| Feature | Official wit-bindgen | cpetig's Fork |
149-
|---------|---------------------|---------------|
150-
| **Rust guest** |||
151-
| **Rust host** | ✅ (native-guest) ||
152-
| **Rust symmetric** |||
153-
| **C++ symmetric** || ✅ (enhanced) |
154-
| **Feature flags** | Standard | `symmetric`, `invert_direction` |
155-
| **Runtime** | Component only | Native + Component |
148+
| Feature | Official wit-bindgen | cpetig's Fork |
149+
| ------------------ | -------------------- | ------------------------------- |
150+
| **Rust guest** | | |
151+
| **Rust host** | ✅ (native-guest) | |
152+
| **Rust symmetric** | | |
153+
| **C++ symmetric** | | ✅ (enhanced) |
154+
| **Feature flags** | Standard | `symmetric`, `invert_direction` |
155+
| **Runtime** | Component only | Native + Component |
156156

157157
## Conclusion
158158

checksums/tools/jco.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
"universal": {
1414
"npm_package": "@bytecodealliance/jco",
1515
"npm_version": "1.4.0",
16-
"dependencies": [
17-
"@bytecodealliance/componentize-js"
18-
]
16+
"dependencies": ["@bytecodealliance/componentize-js"]
1917
}
2018
}
2119
}

docs-site/eslint.config.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
1-
import js from "@eslint/js";
2-
import typescript from "@typescript-eslint/eslint-plugin";
3-
import typescriptParser from "@typescript-eslint/parser";
4-
import astro from "eslint-plugin-astro";
1+
import js from '@eslint/js';
2+
import typescript from '@typescript-eslint/eslint-plugin';
3+
import typescriptParser from '@typescript-eslint/parser';
4+
import astro from 'eslint-plugin-astro';
55

66
export default [
77
js.configs.recommended,
88
{
9-
files: ["**/*.{js,ts,astro}"],
9+
files: ['**/*.{js,ts,astro}'],
1010
plugins: {
11-
"@typescript-eslint": typescript,
11+
'@typescript-eslint': typescript,
1212
},
1313
languageOptions: {
1414
parser: typescriptParser,
1515
parserOptions: {
16-
ecmaVersion: "latest",
17-
sourceType: "module",
16+
ecmaVersion: 'latest',
17+
sourceType: 'module',
1818
},
1919
},
2020
rules: {
21-
"@typescript-eslint/no-unused-vars": "error",
22-
"@typescript-eslint/no-explicit-any": "warn",
23-
"prefer-const": "error",
24-
"no-var": "error",
21+
'@typescript-eslint/no-unused-vars': 'error',
22+
'@typescript-eslint/no-explicit-any': 'warn',
23+
'prefer-const': 'error',
24+
'no-var': 'error',
2525
},
2626
},
2727
{
28-
files: ["**/*.astro"],
28+
files: ['**/*.astro'],
2929
plugins: {
3030
astro: astro,
3131
},
3232
languageOptions: {
3333
parser: astro.parser,
3434
parserOptions: {
35-
parser: "@typescript-eslint/parser",
36-
extraFileExtensions: [".astro"],
35+
parser: '@typescript-eslint/parser',
36+
extraFileExtensions: ['.astro'],
3737
},
3838
},
3939
rules: {
4040
...astro.configs.recommended.rules,
41-
"astro/no-conflict-set-directives": "error",
42-
"astro/no-unused-define-vars-in-style": "error",
41+
'astro/no-conflict-set-directives': 'error',
42+
'astro/no-unused-define-vars-in-style': 'error',
4343
},
4444
},
4545
{
46-
files: ["scripts/**/*.js"],
46+
files: ['scripts/**/*.js'],
4747
languageOptions: {
48-
ecmaVersion: "latest",
49-
sourceType: "module",
48+
ecmaVersion: 'latest',
49+
sourceType: 'module',
5050
},
5151
rules: {
52-
"no-console": "off", // Allow console.log in scripts
52+
'no-console': 'off', // Allow console.log in scripts
5353
},
5454
},
5555
];

0 commit comments

Comments
 (0)