Commit 859a7ea
authored
* Parse `wit` folder in `generate!` with `inline`
This commit updates handling of the `inline` attribute in the
`generate!` macro of the Rust bindings generator. Previously if `inline`
was specified it would by default lookup nothing on the filesystem
unless `path` was specified. This contradicts the documentation though
that `./wit` is the default lookup path. To resolve this this commit
adds a check to see if `./wit` exists, and if so parses it. This keeps
the default search path behavior without requiring its existence when
using `inline`.
* Fix compile
1 parent 92cca96 commit 859a7ea
1 file changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
254 | 255 | | |
255 | 256 | | |
256 | | - | |
257 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
258 | 268 | | |
259 | 269 | | |
260 | 270 | | |
261 | 271 | | |
262 | | - | |
| 272 | + | |
263 | 273 | | |
264 | 274 | | |
265 | 275 | | |
| |||
0 commit comments