alexcrichton opened PR #2444 from rm-wig
to main
:
This commit deletes the old
snapshot_0
implementation of wasi-common,
along with thewig
crate that was used to generate bindings for it.
This then reimplementssnapshot_0
in terms of
wasi_snapshot_preview1
. There were very few changes between the two
snapshots:
- The
nlink
field ofFileStat
was increased from 32 to 64 bits.- The
set
field ofwhence
was reordered.- Clock subscriptions in polling dropped their redundant userdata field.
This makes all of the syscalls relatively straightforward to simply
delegate to the next snapshot's implementation. Some trickery happens to
avoid extra cost when dealing with iovecs, but since the memory layout
of iovecs remained the same this should still work.Now that
snapshot_0
is using wiggle we simply have a trait to
implement, and that's implemented for the sameWasiCtx
that has the
wasi_snapshot_preview1
trait implemented for it as well. While this
theoretically means that you could share the file descriptor table
between the two snapshots that's not supported in the generated bindings
just yet. A separateWasiCtx
will be created for each WASI module.
alexcrichton updated PR #2444 from rm-wig
to main
:
This commit deletes the old
snapshot_0
implementation of wasi-common,
along with thewig
crate that was used to generate bindings for it.
This then reimplementssnapshot_0
in terms of
wasi_snapshot_preview1
. There were very few changes between the two
snapshots:
- The
nlink
field ofFileStat
was increased from 32 to 64 bits.- The
set
field ofwhence
was reordered.- Clock subscriptions in polling dropped their redundant userdata field.
This makes all of the syscalls relatively straightforward to simply
delegate to the next snapshot's implementation. Some trickery happens to
avoid extra cost when dealing with iovecs, but since the memory layout
of iovecs remained the same this should still work.Now that
snapshot_0
is using wiggle we simply have a trait to
implement, and that's implemented for the sameWasiCtx
that has the
wasi_snapshot_preview1
trait implemented for it as well. While this
theoretically means that you could share the file descriptor table
between the two snapshots that's not supported in the generated bindings
just yet. A separateWasiCtx
will be created for each WASI module.
alexcrichton updated PR #2444 from rm-wig
to main
:
This commit deletes the old
snapshot_0
implementation of wasi-common,
along with thewig
crate that was used to generate bindings for it.
This then reimplementssnapshot_0
in terms of
wasi_snapshot_preview1
. There were very few changes between the two
snapshots:
- The
nlink
field ofFileStat
was increased from 32 to 64 bits.- The
set
field ofwhence
was reordered.- Clock subscriptions in polling dropped their redundant userdata field.
This makes all of the syscalls relatively straightforward to simply
delegate to the next snapshot's implementation. Some trickery happens to
avoid extra cost when dealing with iovecs, but since the memory layout
of iovecs remained the same this should still work.Now that
snapshot_0
is using wiggle we simply have a trait to
implement, and that's implemented for the sameWasiCtx
that has the
wasi_snapshot_preview1
trait implemented for it as well. While this
theoretically means that you could share the file descriptor table
between the two snapshots that's not supported in the generated bindings
just yet. A separateWasiCtx
will be created for each WASI module.
alexcrichton updated PR #2444 from rm-wig
to main
:
This commit deletes the old
snapshot_0
implementation of wasi-common,
along with thewig
crate that was used to generate bindings for it.
This then reimplementssnapshot_0
in terms of
wasi_snapshot_preview1
. There were very few changes between the two
snapshots:
- The
nlink
field ofFileStat
was increased from 32 to 64 bits.- The
set
field ofwhence
was reordered.- Clock subscriptions in polling dropped their redundant userdata field.
This makes all of the syscalls relatively straightforward to simply
delegate to the next snapshot's implementation. Some trickery happens to
avoid extra cost when dealing with iovecs, but since the memory layout
of iovecs remained the same this should still work.Now that
snapshot_0
is using wiggle we simply have a trait to
implement, and that's implemented for the sameWasiCtx
that has the
wasi_snapshot_preview1
trait implemented for it as well. While this
theoretically means that you could share the file descriptor table
between the two snapshots that's not supported in the generated bindings
just yet. A separateWasiCtx
will be created for each WASI module.
alexcrichton updated PR #2444 from rm-wig
to main
:
This commit deletes the old
snapshot_0
implementation of wasi-common,
along with thewig
crate that was used to generate bindings for it.
This then reimplementssnapshot_0
in terms of
wasi_snapshot_preview1
. There were very few changes between the two
snapshots:
- The
nlink
field ofFileStat
was increased from 32 to 64 bits.- The
set
field ofwhence
was reordered.- Clock subscriptions in polling dropped their redundant userdata field.
This makes all of the syscalls relatively straightforward to simply
delegate to the next snapshot's implementation. Some trickery happens to
avoid extra cost when dealing with iovecs, but since the memory layout
of iovecs remained the same this should still work.Now that
snapshot_0
is using wiggle we simply have a trait to
implement, and that's implemented for the sameWasiCtx
that has the
wasi_snapshot_preview1
trait implemented for it as well. While this
theoretically means that you could share the file descriptor table
between the two snapshots that's not supported in the generated bindings
just yet. A separateWasiCtx
will be created for each WASI module.
alexcrichton updated PR #2444 from rm-wig
to main
:
This commit deletes the old
snapshot_0
implementation of wasi-common,
along with thewig
crate that was used to generate bindings for it.
This then reimplementssnapshot_0
in terms of
wasi_snapshot_preview1
. There were very few changes between the two
snapshots:
- The
nlink
field ofFileStat
was increased from 32 to 64 bits.- The
set
field ofwhence
was reordered.- Clock subscriptions in polling dropped their redundant userdata field.
This makes all of the syscalls relatively straightforward to simply
delegate to the next snapshot's implementation. Some trickery happens to
avoid extra cost when dealing with iovecs, but since the memory layout
of iovecs remained the same this should still work.Now that
snapshot_0
is using wiggle we simply have a trait to
implement, and that's implemented for the sameWasiCtx
that has the
wasi_snapshot_preview1
trait implemented for it as well. While this
theoretically means that you could share the file descriptor table
between the two snapshots that's not supported in the generated bindings
just yet. A separateWasiCtx
will be created for each WASI module.
pchickey submitted PR Review.
alexcrichton merged PR #2444.
Last updated: Nov 22 2024 at 16:03 UTC