examples: Add dummy Rust VM

This commit is contained in:
Alex Beregszaszi 2019-04-23 20:42:48 +01:00
parent feecf65d29
commit 79b6d2a9c0
3 changed files with 19 additions and 0 deletions

View File

@ -2,4 +2,5 @@
members = [
"bindings/rust/evmc-sys",
"bindings/rust/evmc-vm",
"examples/example-rust-vm"
]

View File

@ -0,0 +1,12 @@
[package]
name = "example-rust-vm"
version = "0.1.0"
authors = ["Alex Beregszaszi <alex@rtfs.hu>"]
edition = "2018"
[lib]
name = "examplerustvm"
crate-type = ["staticlib", "dylib"]
[dependencies]
evmc-vm = { path = "../../bindings/rust/evmc-vm" }

View File

@ -0,0 +1,6 @@
extern crate evmc_vm;
#[no_mangle]
pub extern "C" fn evmc_create_examplerustvm() -> *const evmc_vm::ffi::evmc_instance {
std::ptr::null()
}