You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(rust): resolve executable rule error in rust_wasm_binary
Fixed Bazel analysis error "'executable' provided by an executable rule
should be created by the same rule" that occurred when building CLI
WASM binaries with rust_wasm_binary.
Changes:
- Set executable = True in _wasm_rust_binary_rule
- Create own executable output via ctx.actions.symlink() to satisfy
Bazel's requirement that executable rules must create their own outputs
- Symlink points to actual WASM binary from underlying rust_binary target
Testing:
- Added comprehensive test suite in test/rust_binary/
- Tests validate basic compilation and dependency handling
- Verified outputs are valid WASI components (0x1000d)
- Integrated into language support test suite
This resolves CI failures in pulseengine/wasmsign2 repository where
the rust_wasm_binary rule was failing with the executable rule error.
0 commit comments