File tree Expand file tree Collapse file tree 7 files changed +17
-24
lines changed
Expand file tree Collapse file tree 7 files changed +17
-24
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
44world wasip2-example {
55 include wasi :http /proxy @ 0.2.0 ;
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -8,16 +8,20 @@ ABI](https://github.com/WebAssembly/component-model/blob/main/design/mvp/Concurr
88
99As of this writing, not everything has been upstreamed and released, so this
1010relies 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
2226This 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
Original file line number Diff line number Diff line change 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
44world wasip3-example {
55 include wasi :http /service @ 0.3.0-rc-2026-03-15 ;
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments