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.
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
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
Are you aware of any project that can?
For specifically components I'm not aware of a runtime that compiles to wasm, no
I totally missed the nature of the question with my answer.
adam dedi:
I totally missed the nature of the question with my answer.
Konuşmalarını
Last updated: Nov 22 2024 at 17:03 UTC