github-actions[bot] commented on Issue #1202:
Subscribe to Label Action
This issue or pull request has been labeled: "w", "a", "s", "i"
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
kubkon commented on Issue #1202:
OK, I'm marking this as ready for review. Here's the summary of changes:
This is a rather massive commit that introduces `wiggle` into the picture. We still use `wig`'s macro in `old` snapshot and to generate `wasmtime-wasi` glue, but everything else is now autogenerated by `wiggle`. In summary, thanks to `wiggle`, we no longer need to worry about serialising and deserialising to and from the guest memory, and all guest (WASI) types are now proper idiomatic Rust types. While we're here, in preparation for the ephemeral snapshot, I went ahead and reorganised the internal structure of the crate. Instead of modules like `hostcalls_impl` or `hostcalls_impl::fs`, the structure now resembles that in ephemeral with modules like `path`, `fd`, etc. Now, I'm not requiring we leave it like this, but I reckon it looks cleaner this way after all.
kubkon commented on Issue #1202:
@pchickey I've now re-used
contains
for flags wherever possible. It should read much better now, I reckon :-)
sunfishcode commented on Issue #1202:
Just a quick note -- there are a bunch of references to
FdEntry
in comments still in the tree that would be good to update toEntry
.
kubkon commented on Issue #1202:
Just a quick note -- there are a bunch of references to
FdEntry
in comments still in the tree that would be good to update toEntry
.Thanks for the heads up! I have to admit, I've not paid too much attention to the docs yet.
alexcrichton commented on Issue #1202:
I'm curious what the story is for the old snapshot? It's already been somewhat painful when the two snapshots diverge in how they're defined idiomatically. Is the intention to migrate the old snapshot? Implement the old snapshot trait for the same
WasiCtx
type? Never migrate?
kubkon commented on Issue #1202:
I'm curious what the story is for the old snapshot? It's already been somewhat painful when the two snapshots diverge in how they're defined idiomatically. Is the intention to migrate the old snapshot? Implement the old snapshot trait for the same
WasiCtx
type? Never migrate?So the current idea is to only migrate latest to
wiggle
, while the old snapshot will get polyfilled once we figure out how to do it usingwiggle
. This way, we hope to reduce the duplication to a bare minimum. For ref, see #1252.
kubkon commented on Issue #1202:
Hmm, not sure why building the book suddenly failed :thinking:
alexcrichton commented on Issue #1202:
Oh the book build is my fault
Last updated: Dec 23 2024 at 12:05 UTC