-
Notifications
You must be signed in to change notification settings - Fork 474
Re-add support for building Wasm libraries as executables. #626
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
Conversation
The ability to build Wasm libraries as executables is needed to support WASI reactors (Wasm executables with multiple entrypoints). This is a temporary workaround, and we should be able to use crate-type "bin" when a proper support for WASI reactors (rust-lang/rust#79997) is stabilised is Rust. This feature was added in bazelbuild#312, and most recently broken in bazelbuild#592. Signed-off-by: Piotr Sikora <[email protected]>
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.
@hlopko PTAL
Signed-off-by: Piotr Sikora <[email protected]>
I'm sorry for breaking this /o. If this is urgent I'm happy to approve the PR, but I'd like to continue discussing the options. So if I understand things you want to use What exactly is going to change after this feature is stabilized in rustc? Won't we still need to have some way of telling the rules that they are building the reactor and that they'll have to set the |
Not urgent, but it would be great if it worked, i.e. a few days is fine, a few months is not.
You can build WASI reactors using
You can use the repro steps from the previous time it was broken (#386), and adjust accordingly. But I think it would be better to restore the previously working behavior, otherwise users need to switch from existing:
to:
only to switch back again to
I think this would work just fine (WASI reactors use
Note, that ideally we would have dedicated Right now, we're using "regular" |
Thank you for the thorough explanation! Yeah let's merge this. |
The ability to build Wasm libraries as executables is needed to support
WASI reactors (Wasm executables with multiple entrypoints).
This is a temporary workaround, and we should be able to use crate-type
"bin" when a proper support for WASI reactors (rust-lang/rust#79997) is
stabilised is Rust.
This feature was added in #312, and most recently broken in #592.
Signed-off-by: Piotr Sikora [email protected]