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

Create Rust binding #168

Closed
axic opened this issue Nov 2, 2018 · 1 comment · Fixed by #262
Closed

Create Rust binding #168

axic opened this issue Nov 2, 2018 · 1 comment · Fixed by #262
Assignees

Comments

@axic
Copy link
Member

axic commented Nov 2, 2018

See also ETCDEVTeam/sputnikvm-ffi#12

@axic
Copy link
Member Author

axic commented Mar 14, 2019

Ideally the API should be something like:

struct MyVM {}

impl VM for MyVM {
  fn execute(instance: &Instance, host_context: &HostContext, revision: &Revision, message: &Message, code: &[u8]) -> ExecutionResult {
  }
}

evmc_create_vm!("myvm", "1.0", MyVM)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants