Remove call stack under no_function.

This commit is contained in:
Stephen Chung
2022-01-25 14:32:07 +08:00
parent 40aaab60c3
commit 3cec9751bf
6 changed files with 32 additions and 16 deletions

View File

@@ -160,7 +160,9 @@ pub use types::{
/// Exported under the `debugging` feature only.
#[cfg(feature = "debugging")]
pub mod debugger {
pub use super::eval::{BreakPoint, CallStackFrame, Debugger, DebuggerCommand};
#[cfg(not(feature = "no_function"))]
pub use super::eval::CallStackFrame;
pub use super::eval::{BreakPoint, Debugger, DebuggerCommand};
}
/// An identifier in Rhai. [`SmartString`](https://crates.io/crates/smartstring) is used because most