It doesn't have an Iteratable, could you show how it should be called ?
the read-directory-entry method is intended to be called repeatedly until it returns none, indicating iteration is finished
Oh I think I get it , let me try that
the wasi
crate is just plain old outputs of wit-bindgen, and doesnt try to put a nicer layer of idiomatic rust on top of it.
so you'd have to do your own wrapper that provides an impl Iterator
yosh and i have a wip crate wstd
that provides async rust abstractions closer to what you'd expect on top of the raw bindings, but its not really ready for general use yet, and idk if we got to this particular case or not
Oh ok, thanks a lot, could you provide the link to the crate, would love to check it out
https://github.com/yoshuawuyts/wstd
Last updated: Dec 23 2024 at 12:05 UTC