-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Engine, Artifact traits, merge all Engines into one, make everything rkyv serialazable #3029
Conversation
ccfa86d
to
ec375b1
Compare
ec375b1
to
d9d36af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once the changes are applied we should be good to merge :)
8264aec
to
bdb0c8c
Compare
rkyv is only needed in wasmer-types crate after moving all serializable types there.
Instead of accessing Arc<ModuleInfo> from the artifact a module was instantiated from, create a copy from it in each instantiated module.
In favor of using UniversalArtifact everywhere
The Universal type was essentially a builder of engines that's given a compiler backend and creates an Engine with .engine() method. The name was not clear.
bdb0c8c
to
7a024be
Compare
7a024be
to
924d2dc
Compare
We need to test #2895 as part of this PR |
@@ -20,9 +20,9 @@ | |||
|
|||
use std::str::FromStr; | |||
use wasmer::{wat2wasm, Module, RuntimeError, Store}; | |||
use wasmer_compiler::Universal; | |||
use wasmer_compiler::{CpuFeature, Target, Triple}; | |||
use wasmer_compiler::Backend; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not call it Engine?
/// Finishes the instantiation of a just created `InstanceHandle`. | ||
/// | ||
/// # Safety | ||
/// | ||
/// See [`InstanceHandle::finish_instantiation`]. | ||
unsafe fn finish_instantiation( | ||
pub unsafe fn finish_instantiation( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make it doc_hidden
?
This PR fixes:
Review
Bugs
make build-capi-headless-universal
doesn't compile anymore because the feature combinations have gotten a bit complex.