# Update WASI snapshot to preview1 · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/611a1436f022e777caf4eea8d1e6c81edc22a43f)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 611a1436f022e777caf4eea8d1e6c81edc22a43f

Requested commit: 611a1436f022e777caf4eea8d1e6c81edc22a43f

Commit: 611a1436f022e777caf4eea8d1e6c81edc22a43f

Tree: d2355e2587d059b2c69a04cd8f80a4a3d3659c85

Author: Jakub Konka

Committer: Andrew Kelley

## Message

```
Update WASI snapshot to preview1

This commit updates the WASI imports to use `wasi_snapshot_preview1`
instead of the old `wasi_unstable`. There are some minor ABI
differences between the two, however, the main motivator for using
the latest "stable" snapshot (aka preview1) is that, at least in
Wasmtime, there has been a lot of improvement work put into preview1
and unfortunately I might add, the improvements were not (in full)
backported to `wasi_unstable` snapshot.

Also, this commit removes the optional bound on the pointer to
`environ_get` syscall.

```

## Parents

- [a08675723cd39e3001327aa52b8af4b1c7bb0f32](https://git.cafe/gitcafe/zig/commit/a08675723cd39e3001327aa52b8af4b1c7bb0f32?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/611a1436f022e777caf4eea8d1e6c81edc22a43f?format=markdown)
