From 566c9aa519d25f994047f56ff44da511911bcf39 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 28 May 2019 20:07:27 +0100 Subject: [PATCH] Export types module This avoids the need from users' to specify `types::Address`, etc. --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index bcf4405..30cd945 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,6 +12,7 @@ /// /// use ewasm_api::{Hash, block_hash, finish_data}; /// +/// #[cfg(target_arch = "wasm32")] /// #[no_mangle] /// pub extern "C" fn main() { /// let a: Hash = block_hash(1); @@ -36,7 +37,7 @@ pub mod convert; #[cfg(feature = "std")] use std::vec::Vec; -use crate::types::*; +pub use crate::types::*; use crate::utils::*; /// Enum representing an error code for EEI calls. Currently used by `codeCopy`, `callDataCopy`,