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

@@ -75,7 +75,6 @@ mod custom_syntax;
mod engine;
mod func;
mod module;
#[cfg(not(feature = "no_optimize"))]
mod optimizer;
pub mod packages;
mod parser;
@@ -150,10 +149,10 @@ pub(crate) use func::{
pub use rhai_codegen::*;
pub use func::plugin;
pub use func::{plugin, FuncArgs};
#[cfg(not(feature = "no_function"))]
pub use func::{Func, FuncArgs};
pub use func::Func;
#[cfg(not(feature = "no_function"))]
pub use ast::ScriptFnMetadata;