8000 feat(plugins): Use wazero instead of wasmtime by kyleconroy · Pull Request #3042 · sqlc-dev/sqlc · GitHub
[go: up one dir, main page]

Skip to content

feat(plugins): Use wazero instead of wasmtime #3042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jan 2, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update internal/ext/wasm/wasm.go
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
  • Loading branch information
kyleconroy and anuraaga authored Dec 6, 2023
commit 89f4d8b3b5c20b074803a54088c1c827a16e8413
5 changes: 1 addition & 4 deletions internal/ext/wasm/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,7 @@ func (r *Runner) Invoke(ctx context.Context, method string, args any, reply any,
}

// Print WASM stdout
stdoutBlob, err := io.ReadAll(&stdout)
if err != nil {
return fmt.Errorf("read file: %w", err)
}
stdoutBlob := stdout.Bytes()

resp, ok := reply.(protoreflect.ProtoMessage)
if !ok {
Expand Down
0