Commit 6f08256
committed
fix: make bitflags macro publicly accessible from generated bindings
Changed pub(crate) use bitflags; to pub use bitflags::bitflags; in the
embedded wit_bindgen runtime. This allows external crates that depend on
the generated bindings to access the bitflags macro when they use WASI
filesystem interfaces.
The pub(crate) visibility restricted access to within the bindings crate
itself, preventing downstream users from accessing the macro through the
expected path: crate::wit_bindgen::rt::bitflags::bitflags!
Tested with:
- //examples/basic:hello_component_bindings_host (native-guest mode)
- //tools/checksum_updater_wasm:checksum_updater_wasm_component (WASI filesystem)1 parent 3c83680 commit 6f08256
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
0 commit comments