Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃挜 update: use syscall.Errno-based error code #32

Merged
merged 4 commits into from
Jan 16, 2024

Conversation

gaukas
Copy link
Member

@gaukas gaukas commented Jan 15, 2024

In this PR we propose using internal/wasip1 instead of internal/wasm and re-implement the error code used for water in communication with WATMs.

A water-rs pull request demonstrating the same change will be raised separately and is now covered by @erikziyunchi.

Signed-off-by: Gaukas Wang <i@gaukas.wang>
Signed-off-by: Gaukas Wang <i@gaukas.wang>
It is no longer meaningful to keep an internal/wasm package for just one single struct, plus the struct WazeroModuleConfigFactory is meant to be exported.

Signed-off-by: Gaukas Wang <i@gaukas.wang>
Copy link
Member

@erikziyunchi erikziyunchi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the changes, will make the changes on the rust side as well.

@gaukas gaukas merged commit 10349fe into master Jan 16, 2024
9 checks passed
@gaukas gaukas deleted the gaukas/syscall-errno branch January 17, 2024 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

breaking: use negative version of (-) syscall Errno to replace customized errcodes
2 participants