Skip to content

Commit e0d2df7

Browse files
authored
Merge pull request #40 from asteurer/v0.3.0
chore: prep for v0.3.0 release
2 parents a13ff19 + ceb98ed commit e0d2df7

File tree

9 files changed

+261
-249
lines changed

9 files changed

+261
-249
lines changed

Cargo.lock

Lines changed: 243 additions & 224 deletions
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
@@ -19,7 +19,7 @@ reqwest = { version = "0.13.1", features = ["blocking"] }
1919
tar = "0.4"
2020

2121
[workspace.package]
22-
version = "0.2.0"
22+
version = "0.3.0"
2323
edition = "2024"
2424

2525
[workspace.lints.clippy]

examples/wasip1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
### Prerequisites
66

7-
- [**componentize-go**](https://github.com/bytecodealliance/componentize-go) - Latest version
7+
- [**componentize-go**](https://github.com/bytecodealliance/componentize-go) - v0.3.0
88
- [**go**](https://go.dev/dl/) - v1.25+
9-
- [**wasmtime**](https://github.com/bytecodealliance/wasmtime) - v40.0.2
9+
- [**wasmtime**](https://github.com/bytecodealliance/wasmtime) - v43.0.0
1010

1111
### Run
1212

examples/wasip2/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
### Prerequisites
66

7-
- [**componentize-go**](https://github.com/bytecodealliance/componentize-go) - Latest version
7+
- [**componentize-go**](https://github.com/bytecodealliance/componentize-go) - v0.3.0
88
- [**go**](https://go.dev/dl/) - v1.25+
9-
- [**wasmtime**](https://github.com/bytecodealliance/wasmtime) - v40.0.2
9+
- [**wasmtime**](https://github.com/bytecodealliance/wasmtime) - v43.0.0
1010

1111
### Run
1212

examples/wasip2/wit/world.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// We actually don't use this; it's just to let bindgen! find the corresponding world in wit/deps.
2-
package wasmtime:wasi-http;
2+
package componentize-go:example;
33

44
world wasip2-example {
55
include wasi:http/proxy@0.2.0;

examples/wasip3/Makefile

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
GO := go-$(shell uname -s | tr 'A-Z' 'a-z')-$(shell uname -m | sed -e 's/aarch64/arm64/' -e 's/x86_64/amd64/')-bootstrap
2-
3-
install-patched-go:
4-
@if [ ! -d "../../$(GO)" ]; then \
5-
curl -OL https://github.com/dicej/go/releases/download/go1.25.5-wasi-on-idle/$(GO).tbz --output-dir ../../; \
6-
tar xf ../../$(GO).tbz -C ../../; \
7-
rm ../../$(GO).tbz; \
8-
else \
9-
echo "Go bootstrap already exists at ../../$(GO), skipping download"; \
10-
fi
11-
12-
generate-bindings: install-patched-go
1+
generate-bindings:
132
componentize-go --world wasip3-example bindings --format
143
go mod tidy
154

examples/wasip3/README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,20 @@ ABI](https://github.com/WebAssembly/component-model/blob/main/design/mvp/Concurr
88

99
As of this writing, not everything has been upstreamed and released, so this
1010
relies on specific Git revisions of certain tools, plus [a patched version of
11-
Go](https://github.com/dicej/go/releases/tag/go1.25.5-wasi-on-idle). Once
12-
everything is merged, we'll be able to switch to the upstream releases.
11+
Go](https://github.com/dicej/go/releases/tag/go1.25.5-wasi-on-idle). In the
12+
meantime, if componentize-go detects that a targeted WIT world uses async, it
13+
will automatically install the patched Go version in then OS's cache directory
14+
and use it to build components. Once everything is merged, we'll be able to
15+
switch to the upstream releases.
1316

1417
## Building and Running
1518

1619
### Prerequisites
1720

18-
- [**componentize-go**](https://github.com/bytecodealliance/componentize-go) - Latest version
19-
- [**go**](https://github.com/dicej/go/releases/tag/go1.25.5-wasi-on-idle) - The [Makefile](./Makefile) installs the patched version of Go.
20-
- [**wasmtime**](https://github.com/bytecodealliance/wasmtime) - v40.0.2
21+
- [**componentize-go**](https://github.com/bytecodealliance/componentize-go) - v0.3.0
22+
- [**wasmtime**](https://github.com/bytecodealliance/wasmtime) - v43.0.0
23+
24+
### Build and Run
2125

2226
This will build the dependencies, generate Go bindings from the
2327
`wasi:http@0.3.0-rc-2025-09-16` WIT files, build the component, and run it using

examples/wasip3/wit/world.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// We actually don't use this; it's just to let bindgen! find the corresponding world in wit/deps.
2-
package wasmtime:wasi-http;
2+
package componentize-go:example;
33

44
world wasip3-example {
55
include wasi:http/service@0.3.0-rc-2026-03-15;

tests/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ mod tests {
383383
let mut app = App::new(
384384
&app_dir,
385385
&[&app_dir.join("wit")],
386-
&["wasi:http/service"],
386+
&["wasip3-example"],
387387
None,
388388
true,
389389
);

0 commit comments

Comments
 (0)