-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
Feature
Add serialization or some other form of line-wire data type to support transferring wasmtime::Config between devices.
Benefit
(Unless I'm misunderstanding something) In order to cross precompile right now, the wasmtime engine must know the target's configuration of its wasmtime Engine. By providing serialization to Config the compiling device can query the target for their Config and create an Engine using what it received.
In a simple scenario:
- Device
Ais the compiler - Device
Bis the target
AandBconnect but otherwiseAknows nothing aboutBexcept that it's haswasmtimeBsends its configuration toAAcreates an Engine fromB's config and precompiles a component forBAsends the precompiled component toB
Without step 2 device A wouldn't know how to configure it's Engine for B. Even when knowing the target for B it seems it still wouldn't fully be aware of everything (not) supported by B (e.g. GC).
Implementation
The simplest would be to derive serde for Config and all inner types.
Metadata
Metadata
Assignees
Labels
No labels