898af8e2fb2774b5fc5e54cbc02369a483535e24
In preparation for landing `string` support in `wiggle`, I've revisited `GuestArray` and the deref mechanics, and decided to scrap the current approach in favour of the previous. Namely, for `T: GuestTypeCopy` we provide `GuestArray::as_ref` which then can be derefed directly to `&[T]` since the guest and host types have matching representation, and for other types (thinking here of our infamous arrays of pointers), I've instead added a way to iterate over the pointers. Then, it is up to the `wiggle`'s client to know whether they can deref whatever the pointer stored in array is pointing at.
wiggle
An experimental implementation of bytecodealliance/wig crate which
generates Rust bindings from *.witx that are meant to be more idiomatic
and hopefully allowing for easier polyfilling between different WASI
snapshot versions in the future.
Description
Languages
Rust
77.8%
WebAssembly
20.6%
C
1.3%