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
I'm trying to create a wit interface, a type(record) is re-using another type(record) from wasi-http
I'm using wasmcloud dev tools, but still the error occurs on the bindgen macro
error: failed to resolve directory while parsing WIT for path [/home/dev/work/rating/distributed-rating-poc/1.x/rating-coordicator/wit]
Caused by:
package not found
--> <Project-path>/wit/types.wit:3:7
|
3 | use wasi:http/types.{fields};
| ^--------
src/lib.rs:1:1
the interface definition
interface types{
use wasi:http/types.{fields};
record rating-process-request{
headers: fields
}
}
Thanks for the report! While the error sort of comes from this repository my guess is that the fix here is going to be at a level of configuration unrelated to this repository. The tooling you're using to assemble WIT files looks reasonable but it appears that something has gone wrong and wasi:http isn't available for parsing. As to precisely why that is I'm not sure myself, and I'm also not sure what the fix would be off the top of my head (I'm not familiar with deps.toml and its tooling)
I'm trying to create a wit interface, a type(record) is re-using another type(record) from wasi-http
I'm using wasmcloud dev tools, but still the error occurs on the bindgen macro
the interface definition
the deps.toml
The text was updated successfully, but these errors were encountered: