Skip to content

Commit 35bf29e

Browse files
authored
reset wasi-libc preopen table prior to pre-init snapshot (#80)
This forces wasi-libc to re-initialize the preopen table when the snapshot is restored, making the runtime preopens available in place of the build-time preopens. Signed-off-by: Joel Dice <joel.dice@fermyon.com>
1 parent 4880284 commit 35bf29e

16 files changed

Lines changed: 100 additions & 33 deletions

File tree

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ on:
1212

1313
env:
1414
CARGO_TERM_COLOR: always
15-
WASI_SDK_VERSION: 20.26g68203b20b82e
16-
WASI_SDK_RELEASE: wasi-sockets-alpha-2
15+
WASI_SDK_VERSION: 20.46gf3a1f8991535
16+
WASI_SDK_RELEASE: wasi-sockets-alpha-5
1717

1818
jobs:
1919
linux:

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010

1111
env:
1212
CARGO_TERM_COLOR: always
13-
WASI_SDK_VERSION: 20.26g68203b20b82e
14-
WASI_SDK_RELEASE: wasi-sockets-alpha-2
13+
WASI_SDK_VERSION: 20.46gf3a1f8991535
14+
WASI_SDK_RELEASE: wasi-sockets-alpha-5
1515

1616
jobs:
1717
test:

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ variable). Replace `linux` with `macos` or `mingw` (Windows) below depending on
4747
your OS.
4848

4949
```shell
50-
curl -LO https://github.com/dicej/wasi-sdk/releases/download/wasi-sockets-alpha-2/wasi-sdk-20.26g68203b20b82e-linux.tar.gz
51-
tar xf wasi-sdk-20.26g68203b20b82e-linux.tar.gz
52-
sudo mv wasi-sdk-20.26g68203b20b82e /opt/wasi-sdk
50+
curl -LO https://github.com/dicej/wasi-sdk/releases/download/wasi-sockets-alpha-5/wasi-sdk-20.46gf3a1f8991535-linux.tar.gz
51+
tar xf wasi-sdk-20.46gf3a1f8991535-linux.tar.gz
52+
sudo mv wasi-sdk-20.46gf3a1f8991535 /opt/wasi-sdk
5353
export WASI_SDK_PATH=/opt/wasi-sdk
5454
```
5555

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "componentize-py"
3-
version = "0.13.0"
3+
version = "0.13.1"
44
edition = "2021"
55
exclude = ["cpython"]
66

examples/cli/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ run a Python-based component targetting the [wasi-cli] `command` world.
1010
## Prerequisites
1111

1212
* `Wasmtime` 18.0.0 or later
13-
* `componentize-py` 0.13.0
13+
* `componentize-py` 0.13.1
1414

1515
Below, we use [Rust](https://rustup.rs/)'s `cargo` to install `Wasmtime`. If
1616
you don't have `cargo`, you can download and install from
1717
https://github.com/bytecodealliance/wasmtime/releases/tag/v18.0.0.
1818

1919
```
2020
cargo install --version 18.0.0 wasmtime-cli
21-
pip install componentize-py==0.13.0
21+
pip install componentize-py==0.13.1
2222
```
2323

2424
## Running the demo

examples/http/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ run a Python-based component targetting the [wasi-http] `proxy` world.
1010
## Prerequisites
1111

1212
* `Wasmtime` 18.0.0 or later
13-
* `componentize-py` 0.13.0
13+
* `componentize-py` 0.13.1
1414

1515
Below, we use [Rust](https://rustup.rs/)'s `cargo` to install `Wasmtime`. If
1616
you don't have `cargo`, you can download and install from
1717
https://github.com/bytecodealliance/wasmtime/releases/tag/v18.0.0.
1818

1919
```
2020
cargo install --version 18.0.0 wasmtime-cli
21-
pip install componentize-py==0.13.0
21+
pip install componentize-py==0.13.1
2222
```
2323

2424
## Running the demo

examples/matrix-math/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ within a guest component.
1111
## Prerequisites
1212

1313
* `wasmtime` 18.0.0 or later
14-
* `componentize-py` 0.13.0
14+
* `componentize-py` 0.13.1
1515
* `NumPy`, built for WASI
1616

1717
Note that we use an unofficial build of NumPy since the upstream project does
@@ -23,7 +23,7 @@ https://github.com/bytecodealliance/wasmtime/releases/tag/v18.0.0.
2323

2424
```
2525
cargo install --version 18.0.0 wasmtime-cli
26-
pip install componentize-py==0.13.0
26+
pip install componentize-py==0.13.1
2727
curl -OL https://github.com/dicej/wasi-wheels/releases/download/v0.0.1/numpy-wasi.tar.gz
2828
tar xf numpy-wasi.tar.gz
2929
```

examples/sandbox/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ sandboxed Python code snippets from within a Python app.
88
## Prerequisites
99

1010
* `wasmtime-py` 18.0.0 or later
11-
* `componentize-py` 0.13.0
11+
* `componentize-py` 0.13.1
1212

1313
```
14-
pip install componentize-py==0.13.0 wasmtime==18.0.2
14+
pip install componentize-py==0.13.1 wasmtime==18.0.2
1515
```
1616

1717
## Running the demo

examples/tcp/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ making an outbound TCP request using `wasi-sockets`.
1111
## Prerequisites
1212

1313
* `Wasmtime` 18.0.0 or later
14-
* `componentize-py` 0.13.0
14+
* `componentize-py` 0.13.1
1515

1616
Below, we use [Rust](https://rustup.rs/)'s `cargo` to install `Wasmtime`. If
1717
you don't have `cargo`, you can download and install from
1818
https://github.com/bytecodealliance/wasmtime/releases/tag/v18.0.0.
1919

2020
```
2121
cargo install --version 18.0.0 wasmtime-cli
22-
pip install componentize-py==0.13.0
22+
pip install componentize-py==0.13.1
2323
```
2424

2525
## Running the demo

0 commit comments

Comments
 (0)