mirror of https://github.com/status-im/evmc.git
examples: Add dummy Rust VM
This commit is contained in:
parent
feecf65d29
commit
79b6d2a9c0
|
@ -2,4 +2,5 @@
|
|||
members = [
|
||||
"bindings/rust/evmc-sys",
|
||||
"bindings/rust/evmc-vm",
|
||||
"examples/example-rust-vm"
|
||||
]
|
||||
|
|
|
@ -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" }
|
|
@ -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()
|
||||
}
|
Loading…
Reference in New Issue