-
Notifications
You must be signed in to change notification settings - Fork 101
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
Add proxy_wasm::main macro. #141
Conversation
This is primarly a mechanism to deliver a workaround for a breaking change in Rust v1.56.0 (which updated LLVM to v13.0), which changed existing reactors into multi-entry commands, leading to performance degradation and/or unusable Proxy-Wasm plugins. See: WebAssembly/WASI#471 This is delivered as a macro to make it somehow compatible with the unstable "-Z wasi-exec-model=reactor" feature. Signed-off-by: Piotr Sikora <piotrsikora@google.com>
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.
intereseting
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
|
||
- Fixed performance degradation with `wasm32-wasi` target in Rust v1.56.0 | ||
or newer by adding `proxy_wasm::main` macro that should be used instead | ||
of custom `_start`, `_initialize` and/or `main` exports. |
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.
@Swaagie @mathetake updated text to make it more clear that it's a fix and not simply a new feature. PTAL.
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.
LGTM
This is primarly a mechanism to deliver a workaround for a breaking
change in Rust v1.56.0 (which updated LLVM to v13.0), which changed
existing reactors into multi-entry commands, leading to performance
degradation and/or unusable Proxy-Wasm plugins.
See: WebAssembly/WASI#471
This is delivered as a macro to make it somehow compatible with the
unstable "-Z wasi-exec-model=reactor" feature.
Signed-off-by: Piotr Sikora piotrsikora@google.com