Fix no_function builds.

This commit is contained in:
Stephen Chung 2021-11-16 13:42:22 +08:00
parent c2c30f7711
commit b178d7c367

View File

@ -1,17 +1,21 @@
//! Module defining mechanisms to handle function calls in Rhai. //! Module defining mechanisms to handle function calls in Rhai.
#[cfg(not(feature = "no_function"))]
pub mod args; pub mod args;
pub mod builtin; pub mod builtin;
pub mod call; pub mod call;
#[cfg(not(feature = "no_function"))]
pub mod func; pub mod func;
pub mod hashing; pub mod hashing;
pub mod native; pub mod native;
pub mod plugin; pub mod plugin;
pub mod register; pub mod register;
#[cfg(not(feature = "no_function"))]
pub use args::FuncArgs; pub use args::FuncArgs;
pub use builtin::{get_builtin_binary_op_fn, get_builtin_op_assignment_fn}; pub use builtin::{get_builtin_binary_op_fn, get_builtin_op_assignment_fn};
pub use call::FnCallArgs; pub use call::FnCallArgs;
#[cfg(not(feature = "no_function"))]
pub use func::Func; pub use func::Func;
pub use hashing::{ pub use hashing::{
calc_fn_hash, calc_fn_params_hash, calc_qualified_fn_hash, calc_qualified_var_hash, calc_fn_hash, calc_fn_params_hash, calc_qualified_fn_hash, calc_qualified_var_hash,