Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Wasmer bump to 1.0.0-beta1 #189

Merged
merged 74 commits into from Dec 6, 2020
Merged

Wasmer bump to 1.0.0-beta1 #189

merged 74 commits into from Dec 6, 2020

Conversation

YaronWittenstein
Copy link
Contributor

Motivation

Making SVM work against Wasmer 1.0.0-beta1 version.

* WIP: Wasmer FFI export
…y `svm.h` (at the `svm-runtime-c-api` crate).
let args: Vec<WasmValue> = wasmer_vals_to_wasm_vals(args)?;
let args: svm_byte_array = (WASMER_ARGS_STR, args).into();

let mut results = svm_ffi::alloc_wasm_values(returns_types.len());
let err: *mut svm_byte_array = func(*env, &args, &mut results);

let env = env.func_env as *mut svm_env_t;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this casting necessary?

@YaronWittenstein YaronWittenstein merged commit 88de24f into master Dec 6, 2020
@YaronWittenstein YaronWittenstein deleted the wasmer-1.0.0-beta1 branch December 6, 2020 15:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants