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

linera-witty: use wasmer from git to avoid wasmer-vm dependency #1960

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

Twey
Copy link
Contributor

@Twey Twey commented Apr 25, 2024

Motivation

wasmer-vm works only in a native interpreter environment (i.e. with wasmer/sys), and doesn't even compile for wasm32-unknown-unknown. Thankfully, we only depend on wasmer-vm to get access to StoreObjects.

Proposal

I have patched wasmer in wasmerio/wasmer#4546 to expose the required StoreObjects struct, meaning we can now access StoreObjects without depending on wasmer-vm. This change will be released in Wasmer 4.2.9, but until then we can patch our wasmer dependency to use the version from GitHub that merges my patch.

Test Plan

CI.

Release Plan

Invisible to users.

Links

@Twey Twey force-pushed the 04-25-Remove_wasmer-vm_from_Witty branch 4 times, most recently from 0a9dc6c to cb28aa8 Compare April 26, 2024 09:58
Copy link
Contributor

@jvff jvff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Do we have an issue to track reverting this once the change is upstreamed?

@Twey Twey force-pushed the 04-25-Remove_wasmer-vm_from_Witty branch from c85f700 to ba1bc75 Compare April 26, 2024 11:56
@Twey
Copy link
Contributor Author

Twey commented Apr 26, 2024

Of course 😉 #1966

@Twey Twey merged commit 73d506c into linera-io:main Apr 26, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants