This commit fixes a bug in the `bindgen!` macro for components where previously the `param` and `result` properties weren't properly calculated depending on the structure of the type and which types were visited in which order. This is simplified to use a `LiveTypes` structure from the `wit-parser` crate and relies on that to do necessary recursion.
16 lines
254 B
Plaintext
16 lines
254 B
Plaintext
interface wasi-filesystem {
|
|
record descriptor-stat {
|
|
}
|
|
|
|
enum errno { e }
|
|
|
|
|
|
create-directory-at: func() -> result<_, errno>
|
|
|
|
stat: func() -> result<descriptor-stat, errno>
|
|
}
|
|
|
|
default world wasi {
|
|
import wasi-filesystem: self.wasi-filesystem
|
|
}
|