yurydelendik opened PR #2005 from serialize-module to main:
As being part of
CompilationArtifacts, it will be nice to makeModuleandModuleLocalserializable.Changes:
- Defines WasmTime and WasmFuncType in the Cranelift, instead of re-exporting from wasmparser (also removes un-need cases in wasmtime crate)
- Adds serde attributes to cranelift_wasm types (that need them)
- Adds logic for serializing Module::id and Module::passive_data
fitzgen submitted PR Review.
fitzgen submitted PR Review.
fitzgen created PR Review Comment:
Not really something for this PR, but I kind of wish we had a
wasm-typescrate or something that our whole crate graph could depend on, so that we weren't converting back and forth between identical types all the time.
fitzgen created PR Review Comment:
Instead of panicking here, let's make this a
TryFromimpl instead of aFromimpl: https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.htmlAnd then callers can do the unwrap, where they have context to know that the given
wasmparser::Typeis a validvaltype.
yurydelendik updated PR #2005 from serialize-module to main:
As being part of
CompilationArtifacts, it will be nice to makeModuleandModuleLocalserializable.Changes:
- Defines WasmTime and WasmFuncType in the Cranelift, instead of re-exporting from wasmparser (also removes un-need cases in wasmtime crate)
- Adds serde attributes to cranelift_wasm types (that need them)
- Adds logic for serializing Module::id and Module::passive_data
yurydelendik merged PR #2005.
Last updated: Dec 06 2025 at 06:05 UTC