Skip to content

Commit c2be8a1

Browse files
committed
update dependencies; bump version to 0.20.0
Fixes #197
1 parent be14b85 commit c2be8a1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2429
-2665
lines changed

Cargo.lock

Lines changed: 397 additions & 514 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "componentize-py"
3-
version = "0.19.3"
3+
version = "0.20.0"
44
edition = "2024"
55
exclude = ["cpython"]
66

@@ -14,29 +14,22 @@ clap = { version = "4.5.20", features = ["derive"] }
1414
tar = "0.4.42"
1515
tempfile = "3.13.0"
1616
zstd = "0.13.2"
17-
# TODO: switch to wasm-tools release once
18-
# https://github.com/bytecodealliance/wasm-tools/pull/2367,
19-
# https://github.com/bytecodealliance/wasm-tools/pull/2371, and
20-
# https://github.com/bytecodealliance/wasm-tools/pull/2375 have been released,
21-
# but note that https://github.com/bytecodealliance/wasm-tools/pull/2376 broke
22-
# ABI compatibilty, so we'll also need to upgrade to Wasmtime 40+ to get
23-
# everything aligned.
24-
wasm-encoder = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "e2bb0a24", features = ["wasmparser"] }
25-
wit-dylib = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "e2bb0a24" }
26-
wit-parser = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "e2bb0a24" }
27-
wit-component = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "e2bb0a24" }
28-
wasmparser = { git = "https://github.com/bytecodealliance/wasm-tools", rev = "e2bb0a24" }
17+
wasm-encoder = { version = "0.244.0", features = ["wasmparser"] }
18+
wit-dylib = "0.244.0"
19+
wit-parser = "0.244.0"
20+
wit-component = "0.244.0"
21+
wasmparser = "0.244.0"
2922
indexmap = "2.6.0"
3023
bincode = "1.3.3"
3124
heck = "0.5.0"
3225
pyo3 = { version = "0.26.0", features = [
3326
"abi3-py39",
3427
"extension-module",
3528
], optional = true }
36-
wasmtime = "39.0.0"
37-
wasmtime-wasi = { version = "39.0.0", features = [ "p3" ] }
29+
wasmtime = "41.0.3"
30+
wasmtime-wasi = { version = "41.0.3", features = [ "p3" ] }
3831
once_cell = "1.20.2"
39-
component-init-transform = { git = "https://github.com/dicej/component-init", rev = "2d965957" }
32+
component-init-transform = { git = "https://github.com/dicej/component-init", rev = "1de5906c" }
4033
async-trait = "0.1.83"
4134
futures = "0.3.31"
4235
tokio = { version = "1.41.0", features = [

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` 38.0.0 or later
13-
* `componentize-py` 0.19.3
13+
* `componentize-py` 0.20.0
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/v38.0.0.
1818

1919
```
2020
cargo install --version 38.0.0 wasmtime-cli
21-
pip install componentize-py==0.19.3
21+
pip install componentize-py==0.20.0
2222
```
2323

2424
## Running the demo

examples/http-p3/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
# Example: `http-p3`
22

33
This is an example of how to use [componentize-py] and [Wasmtime] to build and
4-
run a Python-based component targetting version `0.3.0-rc-2025-09-16` of the
5-
[wasi-http] `proxy` world.
4+
run a Python-based component targetting version `0.3.0-rc-2026-01-06` of the
5+
[wasi-http] `service` world.
66

77
[componentize-py]: https://github.com/bytecodealliance/componentize-py
88
[Wasmtime]: https://github.com/bytecodealliance/wasmtime
99
[wasi-http]: https://github.com/WebAssembly/wasi-http
1010

1111
## Prerequisites
1212

13-
* `Wasmtime` 39.0.1
14-
* `componentize-py` 0.19.3
13+
* `Wasmtime` 41.0.3
14+
* `componentize-py` 0.20.0
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
18-
https://github.com/bytecodealliance/wasmtime/releases/tag/v39.0.1.
18+
https://github.com/bytecodealliance/wasmtime/releases/tag/v41.0.3.
1919

2020
```
21-
cargo install --version 39.0.1 wasmtime-cli
22-
pip install componentize-py==0.19.3
21+
cargo install --version 41.0.3 wasmtime-cli
22+
pip install componentize-py==0.20.0
2323
```
2424

2525
## Running the demo
2626

2727
First, build the app and run it:
2828

2929
```
30-
componentize-py -d ../../wit -w wasi:http/proxy@0.3.0-rc-2025-09-16 componentize app -o http.wasm
30+
componentize-py -d ../../wit -w wasi:http/service@0.3.0-rc-2026-01-06 componentize app -o http.wasm
3131
wasmtime serve -Sp3,common -Wcomponent-model-async http.wasm
3232
```
3333

examples/http-p3/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from componentize_py_async_support.streams import ByteStreamWriter
1616
from componentize_py_async_support.futures import FutureReader
1717
from wit_world import exports
18-
from wit_world.imports import handler
18+
from wit_world.imports import client
1919
from wit_world.imports.wasi_http_types import (
2020
Method_Get,
2121
Method_Post,
@@ -110,7 +110,7 @@ async def sha256(url: str) -> tuple[str, str]:
110110
request.set_authority(url_parsed.netloc)
111111
request.set_path_with_query(url_parsed.path)
112112

113-
response = await handler.handle(request)
113+
response = await client.send(request)
114114
status = response.get_status_code()
115115
if status < 200 or status > 299:
116116
return url, f"unexpected status: {status}"

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` 38.0.0 or later
13-
* `componentize-py` 0.19.3
13+
* `componentize-py` 0.20.0
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/v38.0.0.
1818

1919
```
2020
cargo install --version 38.0.0 wasmtime-cli
21-
pip install componentize-py==0.19.3
21+
pip install componentize-py==0.20.0
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` 38.0.0 or later
14-
* `componentize-py` 0.19.3
14+
* `componentize-py` 0.20.0
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/v38.0.0.
2323

2424
```
2525
cargo install --version 38.0.0 wasmtime-cli
26-
pip install componentize-py==0.19.3
26+
pip install componentize-py==0.20.0
2727
curl -OL https://github.com/dicej/wasi-wheels/releases/download/v0.0.2/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` 38.0.0 or later
11-
* `componentize-py` 0.19.3
11+
* `componentize-py` 0.20.0
1212

1313
```
14-
pip install componentize-py==0.19.3 wasmtime==38.0.0
14+
pip install componentize-py==0.20.0 wasmtime==38.0.0
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` 38.0.0 or later
14-
* `componentize-py` 0.19.3
14+
* `componentize-py` 0.20.0
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/v38.0.0.
1919

2020
```
2121
cargo install --version 38.0.0 wasmtime-cli
22-
pip install componentize-py==0.19.3
22+
pip install componentize-py==0.20.0
2323
```
2424

2525
## Running the demo

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ features = ["pyo3/extension-module"]
77

88
[project]
99
name = "componentize-py"
10-
version = "0.19.3"
10+
version = "0.20.0"
1111
description = "Tool to package Python applications as WebAssembly components"
1212
readme = "README.md"
1313
license = { file = "LICENSE" }

0 commit comments

Comments
 (0)