-
Notifications
You must be signed in to change notification settings - Fork 153
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
WASM Plugin for Pixiu #469
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #469 +/- ##
===========================================
- Coverage 37.26% 37.20% -0.06%
===========================================
Files 56 56
Lines 3805 3811 +6
===========================================
Hits 1418 1418
- Misses 2224 2230 +6
Partials 163 163
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
New: func() interface{} { | ||
pwd, _ := os.Getwd() | ||
instance := wasmer.NewWasmerInstanceFromFile(filepath.Join(pwd, cfg.Path)) | ||
proxywasm.RegisterImports(instance) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instance 做非空判断,或者提前判断 path 下 wasm 文件是否存在,给出友好 log
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好
What this PR does:
Pixiu supports the WASM plugin mechanism, and provides a simple implementation of WASM plugins.
Which issue(s) this PR fixes:
Fixes #432
Special notes for your reviewer: