Commit 9476144
committed
fix: include generation_mode in Rust bindgen output filename
Both guest and native-guest wit_bindgen targets were generating files with the
same name (e.g., basic_component.rs), causing Bazel conflicting action errors.
Changes:
- Add mode_suffix to rust_filename based on generation_mode
- Guest mode: no suffix (basic_component.rs)
- Native-guest mode: _native_guest suffix (basic_component_native_guest.rs)
- Add fallback for world_name when not provided
This resolves the build failures:
ERROR: file 'test/integration/basic_component.rs' is generated by these
conflicting actions: basic_component_wit_bindgen_guest and
basic_component_wit_bindgen_native_guest1 parent c1315d4 commit 9476144
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
| |||
0 commit comments