From b178d7c367ea6f16ac2a3cf6efa8520caa407bd0 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Tue, 16 Nov 2021 13:42:22 +0800 Subject: [PATCH] Fix no_function builds. --- src/func/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/func/mod.rs b/src/func/mod.rs index ffeb578a..55c7964f 100644 --- a/src/func/mod.rs +++ b/src/func/mod.rs @@ -1,17 +1,21 @@ //! Module defining mechanisms to handle function calls in Rhai. +#[cfg(not(feature = "no_function"))] pub mod args; pub mod builtin; pub mod call; +#[cfg(not(feature = "no_function"))] pub mod func; pub mod hashing; pub mod native; pub mod plugin; pub mod register; +#[cfg(not(feature = "no_function"))] pub use args::FuncArgs; pub use builtin::{get_builtin_binary_op_fn, get_builtin_op_assignment_fn}; pub use call::FnCallArgs; +#[cfg(not(feature = "no_function"))] pub use func::Func; pub use hashing::{ calc_fn_hash, calc_fn_params_hash, calc_qualified_fn_hash, calc_qualified_var_hash,