Stream: general

Topic: Embedded Runtime


view this post on Zulip Karl Smit (Mar 28 2024 at 21:44):

Is there a subset of the wasmtime rust crate that is compilable for wasm32-wasi, so that I can dynamically load and run wasm components from my component?

I get stuck on cranelift compiling for the target, but Im also not sure if I need cranelift if the components are already in binary format.

view this post on Zulip adam (Mar 28 2024 at 21:46):

Probably don't need cranelift. Here's a project that uses the most barebones runtime setup to run a component.

https://github.com/eighty4/learn-wasm-components/tree/main/runtime/rust

Contribute to eighty4/learn-wasm-components development by creating an account on GitHub.

view this post on Zulip Alex Crichton (Mar 28 2024 at 21:47):

Wasmtime's "compile half" can be compiled to wasm, aka you can compile Cranelift to wasm itself. Wasmtime's "runtime half", aka loading/executing wasm modules, cannot be compiled to wasm at this time.

Put another way - no, Wasmtime cannot be used to dynamically load a component in a component

view this post on Zulip Karl Smit (Mar 28 2024 at 21:57):

Are you aware of any project that can?

view this post on Zulip Alex Crichton (Mar 28 2024 at 22:02):

For specifically components I'm not aware of a runtime that compiles to wasm, no

view this post on Zulip adam (Apr 04 2024 at 19:10):

I totally missed the nature of the question with my answer.

view this post on Zulip Levent kaya (May 28 2024 at 14:37):

adam dedi:

I totally missed the nature of the question with my answer.

view this post on Zulip Levent kaya (May 28 2024 at 14:37):

Konuşmalarını


Last updated: Dec 23 2024 at 12:05 UTC