How do we want to expose compilation via API? I'm entertaining Module::compile_and_serialize
+ ::deserialize
(e.g. https://github.com/yurydelendik/wasmtime/commit/34a8d3dc1276aabb75eb501af85efd748e635187#diff-097fdd3945b906262e6a37c58dc4f01cR313-R342) Maybe there is a better idea.
Also, there is a need to fingerprint Config
to check if a compilation is compatible
/me thinking to just hash settings::Builder and triple
seems reasonable to start off with that, a serialize/deserialize API
which just goes between Module
and Vec<u8>
I'm not sure if compile_and_serialize
need to be bundled?
for a fingerprint I think ideally we'd implement Hash for Config
and Eq for Config
er, I guess just Hash
Alright, I got PR 2020 https://github.com/bytecodealliance/wasmtime/pull/2020
Last updated: Dec 23 2024 at 14:03 UTC