Fix feature builds.

This commit is contained in:
Stephen Chung
2021-11-27 23:20:05 +08:00
parent e918e61e95
commit 4fc088a0f1
10 changed files with 23 additions and 34 deletions

View File

@@ -3,22 +3,18 @@
use crate::{Module, Shared};
pub(crate) mod arithmetic;
#[cfg(not(feature = "no_index"))]
mod array_basic;
#[cfg(not(feature = "no_index"))]
mod blob_basic;
mod fn_basic;
mod iter_basic;
mod lang_core;
mod logic;
#[cfg(not(feature = "no_object"))]
mod map_basic;
mod math_basic;
mod pkg_core;
mod pkg_std;
mod string_basic;
mod string_more;
#[cfg(not(feature = "no_std"))]
mod time_basic;
pub use arithmetic::ArithmeticPackage;

View File

@@ -3,8 +3,6 @@
use super::{arithmetic::make_err as make_arithmetic_err, math_basic::MAX_INT};
use crate::plugin::*;
use crate::{def_package, Dynamic, EvalAltResult, INT};
#[cfg(feature = "no_std")]
use std::prelude::v1::*;
#[cfg(not(feature = "no_float"))]
use crate::FLOAT;