Commit 24bc718
committed
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.1 parent 555ec34 commit 24bc718
1 file changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
225 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
226 | 232 | | |
227 | 233 | | |
228 | 234 | | |
| |||
314 | 320 | | |
315 | 321 | | |
316 | 322 | | |
317 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
318 | 327 | | |
319 | | - | |
| 328 | + | |
320 | 329 | | |
321 | 330 | | |
322 | 331 | | |
| |||
0 commit comments