Add missing import to wasmtime-rust macro (#589)

This commit does two things: 1) it fixes `wasmtime_rust::wasmtime` proc macro by
adding the missing import to the `__rt` module, and fixing the scoping inside
the macro itself; and 2) it augments the `wasmtime_rust::wasmtime` proc macro with
custom error messages in case the implementor forgets the `self` argument in the
trait methods.
This commit is contained in:
Jakub Konka
2019-11-18 17:39:40 +01:00
committed by Alex Crichton
parent a2479df329
commit 9182971697
2 changed files with 10 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ pub mod __rt {
pub use wasmtime_api;
pub use wasmtime_interface_types;
pub use wasmtime_jit;
pub use wasmtime_wasi;
use std::convert::{TryFrom, TryInto};
use wasmtime_interface_types::Value;