Skip to content
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

Merged
merged 12 commits into from
Jul 25, 2022

Conversation

epilys
Copy link
Contributor

@epilys epilys commented Jul 20, 2022

This PR fixes:

Review

  • Document API changes in documentation and migration document
  • Add a short description of the change to the CHANGELOG.md file

Bugs

make build-capi-headless-universal doesn't compile anymore because the feature combinations have gotten a bit complex.

@epilys epilys requested a review from syrusakbary as a code owner July 20, 2022 12:16
@epilys epilys self-assigned this Jul 20, 2022
@epilys epilys added this to the v3.0 milestone Jul 20, 2022
@epilys epilys force-pushed the wasmer3-rkyv-archives branch from ccfa86d to ec375b1 Compare July 20, 2022 12:17
lib/cli/src/store.rs Outdated Show resolved Hide resolved
Copy link
Member

@syrusakbary syrusakbary left a 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 :)

@epilys epilys force-pushed the wasmer3-rkyv-archives branch from 8264aec to bdb0c8c Compare July 25, 2022 10:12
epilys added 11 commits July 25, 2022 13:13
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.
@epilys epilys force-pushed the wasmer3-rkyv-archives branch from bdb0c8c to 7a024be Compare July 25, 2022 10:29
@epilys epilys force-pushed the wasmer3-rkyv-archives branch from 7a024be to 924d2dc Compare July 25, 2022 11:45
@syrusakbary
Copy link
Member

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;
Copy link
Member

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(
Copy link
Member

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?

@syrusakbary syrusakbary merged commit 74482a1 into master Jul 25, 2022
@bors bors bot deleted the wasmer3-rkyv-archives branch July 25, 2022 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants