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: update wkg_publish rule to use WasmComponentInfo provider for multi-file component support
Root cause: wkg_publish used allow_single_file=['.wasm'] constraint but rust_wasm_component_bindgen
creates composite targets with both .wasm files and validation .log files, causing:
'//examples/basic:hello_component_release' must produce a single file
Solution: Updated wkg_publish to match wkg_push pattern:
- Use WasmComponentInfo provider instead of allow_single_file constraint
- Extract component.wasm_file from provider (ignores other files)
- Add backward compatibility with wasm_file attribute for direct .wasm files
This allows wkg_publish to work with complex component targets that produce multiple outputs
while correctly isolating just the .wasm component file for publishing.
0 commit comments