Stream: wasmtime

Topic: ✔ preview 2 target


view this post on Zulip Cwasi4wasm (Dec 05 2023 at 14:19):

Is there a preview 2 target? Would want to slowly convert our wasm from preview 1 to preview 2

view this post on Zulip Cwasi4wasm (Dec 05 2023 at 14:22):

Cwasi4wasm said:

Is there a preview 2 target? Would want to slowly convert our wasm from preview 1 to preview 2

I should maybe specify a "rust" target

view this post on Zulip Joel Dice (Dec 05 2023 at 15:16):

Not yet, but it's been proposed: https://github.com/rust-lang/compiler-team/issues/694. Meanwhile, you can use cargo-component, which will automatically adapt your Preview 1 module to Preview 2 and allow you to use Preview 2 APIs directly, as desired.

Proposal Note: This proposal is intended to augment a previous MCP for the same target string and update its definition. This MCP is written from the perspective of the compiler today where wasm32-...

view this post on Zulip Cwasi4wasm (Dec 05 2023 at 15:28):

Awesome thank you very much I will take a look at cargo-component!

view this post on Zulip Notification Bot (Dec 06 2023 at 14:50):

Cwasi4wasm has marked this topic as resolved.


Last updated: Oct 23 2024 at 20:03 UTC