From b6d35ab3103e537a230c815b8cfed902c044c742 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Mon, 16 Nov 2020 09:30:17 +0800 Subject: [PATCH] Fix no_module build. --- src/engine_api.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine_api.rs b/src/engine_api.rs index b526f545..e4ece6f8 100644 --- a/src/engine_api.rs +++ b/src/engine_api.rs @@ -28,11 +28,14 @@ use crate::{ use crate::fn_register::{RegisterFn, RegisterResultFn}; #[cfg(not(feature = "no_function"))] -use crate::{fn_args::FuncArgs, fn_call::ensure_no_data_race, module::Module, StaticVec}; +use crate::{fn_args::FuncArgs, fn_call::ensure_no_data_race, StaticVec}; #[cfg(not(feature = "no_module"))] use crate::fn_native::{shared_take_or_clone, Shared}; +#[cfg(any(not(feature = "no_function"), not(feature = "no_module")))] +use crate::module::Module; + #[cfg(not(feature = "no_optimize"))] use crate::optimize::optimize_into_ast;