Fix no_function build.
This commit is contained in:
parent
f76daadcba
commit
cef61bc924
@ -1,5 +1,6 @@
|
||||
//! Helper module which defines [`FuncArgs`] to make function calling easier.
|
||||
|
||||
#![cfg(not(feature = "no_function"))]
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
use crate::dynamic::Variant;
|
||||
|
@ -8,6 +8,7 @@ use crate::stdlib::{boxed::Box, string::ToString};
|
||||
use crate::{Engine, EvalAltResult, ParseError, Scope, AST};
|
||||
|
||||
/// Trait to create a Rust closure from a script.
|
||||
/// Not available under `no_function`.
|
||||
pub trait Func<ARGS, RET> {
|
||||
type Output;
|
||||
|
||||
|
@ -122,7 +122,6 @@ pub type FLOAT = f32;
|
||||
pub use ast::{FnAccess, ScriptFnMetadata, AST};
|
||||
pub use dynamic::Dynamic;
|
||||
pub use engine::{Engine, EvalContext};
|
||||
pub use fn_args::FuncArgs;
|
||||
pub use fn_native::{FnPtr, NativeCallContext, Shared};
|
||||
pub use fn_register::{RegisterFn, RegisterResultFn};
|
||||
pub use module::{FnNamespace, Module};
|
||||
@ -147,6 +146,9 @@ pub use rhai_codegen::*;
|
||||
#[cfg(not(feature = "no_function"))]
|
||||
pub use fn_func::Func;
|
||||
|
||||
#[cfg(not(feature = "no_function"))]
|
||||
pub use fn_args::FuncArgs;
|
||||
|
||||
/// Variable-sized array of [`Dynamic`] values.
|
||||
///
|
||||
/// Not available under `no_index`.
|
||||
@ -164,7 +166,7 @@ pub use module::ModuleResolver;
|
||||
|
||||
/// Module containing all built-in _module resolvers_ available to Rhai.
|
||||
#[cfg(not(feature = "no_module"))]
|
||||
pub use crate::module::resolvers as module_resolvers;
|
||||
pub use module::resolvers as module_resolvers;
|
||||
|
||||
/// _(SERDE)_ Serialization and deserialization support for [`serde`](https://crates.io/crates/serde).
|
||||
/// Exported under the `serde` feature.
|
||||
|
Loading…
Reference in New Issue
Block a user