Feature gate make_getter imports

This commit is contained in:
J Henry Waugh 2020-08-14 19:37:16 -05:00
parent eabf9db263
commit 89de2fe6b2
5 changed files with 9 additions and 2 deletions

View File

@ -3,7 +3,9 @@
use crate::any::{Dynamic, Variant}; use crate::any::{Dynamic, Variant};
use crate::def_package; 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::fn_native::FnPtr;
use crate::parser::{ImmutableString, INT}; use crate::parser::{ImmutableString, INT};
use crate::plugin::*; use crate::plugin::*;

View File

@ -1,4 +1,5 @@
use crate::def_package; use crate::def_package;
#[cfg(not(feature = "no_object"))]
use crate::engine::make_getter; use crate::engine::make_getter;
use crate::fn_native::FnPtr; use crate::fn_native::FnPtr;
use crate::plugin::*; use crate::plugin::*;

View File

@ -1,4 +1,5 @@
use crate::def_package; use crate::def_package;
#[cfg(not(feature = "no_object"))]
use crate::engine::make_getter; use crate::engine::make_getter;
use crate::parser::INT; use crate::parser::INT;
use crate::plugin::*; use crate::plugin::*;

View File

@ -2,7 +2,9 @@
use crate::any::Dynamic; use crate::any::Dynamic;
use crate::def_package; 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::fn_native::FnPtr;
use crate::parser::{ImmutableString, INT}; use crate::parser::{ImmutableString, INT};
use crate::plugin::*; use crate::plugin::*;

View File

@ -5,6 +5,7 @@
use super::math_basic::MAX_INT; use super::math_basic::MAX_INT;
use crate::def_package; use crate::def_package;
#[cfg(not(feature = "no_object"))]
use crate::engine::make_getter; use crate::engine::make_getter;
use crate::plugin::*; use crate::plugin::*;
use crate::result::EvalAltResult; use crate::result::EvalAltResult;