* Change the name of wit-bindgen's host implementation traits. Instead of naming the host implementation trait something like `wasi_filesystem::WasiFilesystem`, name it `wasi_filesystem::Host`, and avoid using the identifier `Host` in other places. This fixes a collision when generating bindings for the current wasi-clock API, which contains an interface `wall-clock` which contains a type `wall-clock`, which created a naming collision on the name `WallClock`. * Update tests to use the new trait name. * Fix one more. * Add the new test interface to the simple-wasi world.
22 lines
343 B
Plaintext
22 lines
343 B
Plaintext
interface wasi-filesystem {
|
|
record descriptor-stat {
|
|
}
|
|
|
|
enum errno { e }
|
|
|
|
|
|
create-directory-at: func() -> result<_, errno>
|
|
|
|
stat: func() -> result<descriptor-stat, errno>
|
|
}
|
|
|
|
interface wall-clock {
|
|
record wall-clock {
|
|
}
|
|
}
|
|
|
|
default world wasi {
|
|
import wasi-filesystem: self.wasi-filesystem
|
|
import wall-clock: self.wall-clock
|
|
}
|