From 89de2fe6b2886465a4e0775990ef41aad0efc32a Mon Sep 17 00:00:00 2001 From: J Henry Waugh Date: Fri, 14 Aug 2020 19:37:16 -0500 Subject: [PATCH] Feature gate make_getter imports --- src/packages/array_basic.rs | 4 +++- src/packages/fn_basic.rs | 1 + src/packages/math_basic.rs | 1 + src/packages/string_more.rs | 4 +++- src/packages/time_basic.rs | 1 + 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/packages/array_basic.rs b/src/packages/array_basic.rs index a75fe369..c044eddc 100644 --- a/src/packages/array_basic.rs +++ b/src/packages/array_basic.rs @@ -3,7 +3,9 @@ use crate::any::{Dynamic, Variant}; use crate::def_package; -use crate::engine::{make_getter, Array, Engine}; +#[cfg(not(feature = "no_object"))] +use crate::engine::make_getter; +use crate::engine::{Array, Engine}; use crate::fn_native::FnPtr; use crate::parser::{ImmutableString, INT}; use crate::plugin::*; diff --git a/src/packages/fn_basic.rs b/src/packages/fn_basic.rs index 8fe886dc..fd3b5052 100644 --- a/src/packages/fn_basic.rs +++ b/src/packages/fn_basic.rs @@ -1,4 +1,5 @@ use crate::def_package; +#[cfg(not(feature = "no_object"))] use crate::engine::make_getter; use crate::fn_native::FnPtr; use crate::plugin::*; diff --git a/src/packages/math_basic.rs b/src/packages/math_basic.rs index f31e64dd..f8b905b2 100644 --- a/src/packages/math_basic.rs +++ b/src/packages/math_basic.rs @@ -1,4 +1,5 @@ use crate::def_package; +#[cfg(not(feature = "no_object"))] use crate::engine::make_getter; use crate::parser::INT; use crate::plugin::*; diff --git a/src/packages/string_more.rs b/src/packages/string_more.rs index f33fd080..d3b913fa 100644 --- a/src/packages/string_more.rs +++ b/src/packages/string_more.rs @@ -2,7 +2,9 @@ use crate::any::Dynamic; use crate::def_package; -use crate::engine::{make_getter, Engine}; +#[cfg(not(feature = "no_object"))] +use crate::engine::make_getter; +use crate::engine::Engine; use crate::fn_native::FnPtr; use crate::parser::{ImmutableString, INT}; use crate::plugin::*; diff --git a/src/packages/time_basic.rs b/src/packages/time_basic.rs index ce0f9abf..202e7115 100644 --- a/src/packages/time_basic.rs +++ b/src/packages/time_basic.rs @@ -5,6 +5,7 @@ use super::math_basic::MAX_INT; use crate::def_package; +#[cfg(not(feature = "no_object"))] use crate::engine::make_getter; use crate::plugin::*; use crate::result::EvalAltResult;