Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .devcontainer/setup.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash
echo 'export PATH="$HOME/.moon/bin:$PATH"' >> ~/.bashrc

# Go
curl -OL https://go.dev/dl/go1.25.5.linux-amd64.tar.gz
tar xf go1.25.5.linux-amd64.tar.gz
echo "export PATH=$HOME/go1.25.5.linux-amd64/bin:\$PATH" >> ~/.bashrc
GO="go-$(uname -s | tr 'A-Z' 'a-z')-$(uname -m | sed -e 's/aarch64/arm64/' -e 's/x86_64/amd64/')-bootstrap"
curl -OL https://github.com/dicej/go/releases/download/go1.25.5-wasi-on-idle/$GO.tbz
tar xf $GO.tbz
rm $GO.tbz
echo "export PATH=$HOME/$GO/bin:\$PATH" >> ~/.bashrc
2 changes: 1 addition & 1 deletion crates/go/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ impl Go {
format!(
"{params_pointer} := wit_runtime.Allocate({PINNER}, {size}, {align})\n{code}"
),
vec![params_pointer],
vec![format!("uintptr({params_pointer})")],
)
} else {
let wasm_params = go_param_names
Expand Down
3 changes: 2 additions & 1 deletion crates/test/src/cpp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ impl LanguageMethods for Cpp {
| "futures.wit"
| "resources-with-futures.wit"
| "resources-with-streams.wit"
| "streams.wit" => true,
| "streams.wit"
| "async-resource-func.wit" => true,
_ => false,
}
}
Expand Down
1 change: 1 addition & 0 deletions crates/test/src/csharp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ impl LanguageMethods for Csharp {
| "streams.wit"
| "error-context.wit"
| "resource-fallible-constructor.wit"
| "async-resource-func.wit"
)
}

Expand Down
14 changes: 14 additions & 0 deletions tests/codegen/async-resource-func.wit
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package foo:bar;

world bindings {
import types;
}

interface types {
resource descriptor {
test: async func(
arg1: string,
arg2: list<s32>,
);
}
}
Loading