1 unstable release

Uses old Rust 2015

0.1.0 Oct 12, 2017

#18 in #sputnik-vm

Apache-2.0

6KB
89 lines

SputnikVM Callback Wrapper

Build Status License Cargo

This callback wrapper allows you to invoke the SputnikVM library using a callback-like style instead of the RequireError style.

Note that however, the RequireError style is more flexible and works better when doing concurrent programming. So this is a SputnikVM Contrib Project.

Get Started

Add sputnikvm-callback to your dependency and implement the sputnikvm_callback::Callback trait. After that, you can first create a normal VM, and then use:

let callback_vm = CallbackVM::new(vm, callback);

After that, invoke fire on the callback_vm would no longer needs to deal with RequireError.

Dependencies

~2MB
~21K SLoC