chore: gate func::native export under the internals flag.

This commit is contained in:
ltabis 2022-11-11 12:10:19 +01:00
parent a381a485ec
commit 0790e5bc96

View File

@ -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;