From 0790e5bc96c1868aa9e8a72b319496df47456b85 Mon Sep 17 00:00:00 2001 From: ltabis Date: Fri, 11 Nov 2022 12:10:19 +0100 Subject: [PATCH] chore: gate func::native export under the `internals` flag. --- src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 4991287d..9fe84989 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -96,9 +96,6 @@ mod tests; mod tokenizer; mod types; -/// Export to create module resolvers. -pub use func::native; - /// Error encountered when parsing a script. type PERR = ParseErrorType; /// Evaluation result. @@ -204,6 +201,8 @@ pub use api::{eval::eval, events::VarDefInfo, run::run}; pub use ast::{FnAccess, AST}; pub use engine::{Engine, OP_CONTAINS, OP_EQUALS}; pub use eval::EvalContext; +#[cfg(feature = "internals")] +pub use func::native; pub use func::{NativeCallContext, RegisterNativeFunction}; pub use module::{FnNamespace, Module}; pub use tokenizer::Position;