Skip to content

Commit a77c6b2

Browse files
authored
update all the things (#48)
* update all the things - Update to WASI 0.2.0-rc-2023-12-05 RC - Update to release-16.0.0 branch of Wasmtime - Update to CPython 3.12 - Add TCP example (requires `sockets` branch of https://github.com/dicej/wasi-sdk) - Update `wasm-tools` deps, etc. Signed-off-by: Joel Dice <joel.dice@fermyon.com> * enable IPv6 in CPython Signed-off-by: Joel Dice <joel.dice@fermyon.com> * switch to new wasi-sdk and numpy builds Signed-off-by: Joel Dice <joel.dice@fermyon.com> * update to wasi-sdk shared-library-alpha-4 Signed-off-by: Joel Dice <joel.dice@fermyon.com> * update http example instructions Signed-off-by: Joel Dice <joel.dice@fermyon.com> * update adapter; fix ownership issue in HTTP example Signed-off-by: Joel Dice <joel.dice@fermyon.com> * use exact versions in examples Signed-off-by: Joel Dice <joel.dice@fermyon.com> * use `VIRTUAL_ENV` if set to find `site-packages` Signed-off-by: Joel Dice <joel.dice@fermyon.com> * update to Wasmtime 16 and CPython 3.12.1 Signed-off-by: Joel Dice <joel.dice@fermyon.com> * update `wasi-sdk` build Signed-off-by: Joel Dice <joel.dice@fermyon.com> * add support for WIT and config files in Python packages This is an experimental (and currently undocumented) feature intended to support Python packages containing componentize-py.toml files. `componentize-py` look for these files during componentization and use them if found. Currently, they allow the package to embed WIT files so the application developer need not supply their own. Additionally, the package can indicate the module containing the Python bindings generated from those WIT files, which `componentize-py` will replace with its own version during componentization. Signed-off-by: Joel Dice <joel.dice@fermyon.com> * fix `wasi-sdk` links in workflows Signed-off-by: Joel Dice <joel.dice@fermyon.com> --------- Signed-off-by: Joel Dice <joel.dice@fermyon.com>
1 parent a737608 commit a77c6b2

35 files changed

Lines changed: 882 additions & 434 deletions

.github/workflows/release.yaml

Lines changed: 4 additions & 4 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.16g86c5c116b0a6
16-
WASI_SDK_RELEASE: shared-library-alpha-2
15+
WASI_SDK_VERSION: 20.43g3df3a466fbbe
16+
WASI_SDK_RELEASE: wasi-sockets-alpha-1
1717

1818
jobs:
1919
linux:
@@ -27,7 +27,7 @@ jobs:
2727

2828
- uses: actions/setup-python@v4
2929
with:
30-
python-version: '3.11'
30+
python-version: '3.12'
3131

3232
- name: Install latest Rust stable toolchain
3333
uses: actions-rs/toolchain@v1
@@ -141,7 +141,7 @@ jobs:
141141

142142
- uses: actions/setup-python@v4
143143
with:
144-
python-version: '3.11'
144+
python-version: '3.12'
145145

146146
- name: Install latest Rust stable toolchain
147147
uses: actions-rs/toolchain@v1

.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.16g86c5c116b0a6
14-
WASI_SDK_RELEASE: shared-library-alpha-2
13+
WASI_SDK_VERSION: 20.43g3df3a466fbbe
14+
WASI_SDK_RELEASE: wasi-sockets-alpha-1
1515

1616
jobs:
1717
test:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ examples/matrix-math/matrix_math
99
examples/matrix-math/wasmtime-py
1010
examples/http/.spin
1111
examples/http/http.wasm
12+
examples/tcp/tcp.wasm
13+
examples/cli/cli.wasm

CONTRIBUTING.md

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

5353
```shell
54-
curl -LO https://github.com/dicej/wasi-sdk/releases/download/shared-library-alpha-2/wasi-sdk-20.16g86c5c116b0a6-linux.tar.gz
55-
tar xf wasi-sdk-20.16g86c5c116b0a6-linux.tar.gz
56-
sudo mv wasi-sdk-20.16g86c5c116b0a6 /opt/wasi-sdk
54+
curl -LO https://github.com/dicej/wasi-sdk/releases/download/wasi-sockets-alpha-1/wasi-sdk-20.43g3df3a466fbbe-linux.tar.gz
55+
tar xf wasi-sdk-20.43g3df3a466fbbe-linux.tar.gz
56+
sudo mv wasi-sdk-20.43g3df3a466fbbe /opt/wasi-sdk
5757
export WASI_SDK_PATH=/opt/wasi-sdk
5858
```
5959

0 commit comments

Comments
 (0)