bytecodealliance / bytecodealliance/wit-bindgen
unable to re-use some types from wasi-http interfaces
- Dominant language
- Rust
- Stars
- 1.5k
- Forks
- 286
- Avg merge
- 6h 32m
- Merged PRs (30d)
- 19
Description
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
--> /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
}
}
```
the deps.toml
```
http = "https://github.com/WebAssembly/wasi-http/archive/v0.2.0.tar.gz"
keyvalue = "https://github.com/WebAssembly/wasi-keyvalue/archive/53ff9402194704cb68b1599c4e35e9182f4c57c4.tar.gz"
logging = "https://github.com/WebAssembly/wasi-logging/archive/d31c41d0d9eed81aabe02333d0025d42acf3fb75.tar.gz"
bus = "https://github.com/wasmCloud/wasmCloud/releases/download/wit-wasmcloud-bus-v1.0.0/wit-wasmcloud-bus-1.0.0.tar.gz"
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.