#![deny(unsafe_op_in_unsafe_fn)]
pub(crate) mod accel;
pub mod api;
#[cfg(feature = "tools")]
pub mod cdata;
pub mod compact;
#[cfg(feature = "tools")]
pub mod convert;
#[cfg(feature = "tools")]
pub mod corpus;
pub mod extract;
pub(crate) mod hw;
pub mod langs;
#[cfg(feature = "tools")]
pub mod lexconv;
pub mod lexer;
pub mod parser;
pub mod recover;
pub mod scanner;
pub mod stack;
pub mod table;
pub mod tree;
pub use extract::{Outline, Section, Symbol, SymbolKind, outline};
#[derive(Debug, Clone, Copy)]
pub struct Limits {
pub max_stack_depth: usize,
pub max_versions: usize,
pub max_nodes: usize,
pub max_steps: u64,
pub max_millis: u64,
}
impl Default for Limits {
fn default() -> Self {
Self {
max_stack_depth: 4096,
max_versions: 6,
max_nodes: 4_000_000,
max_steps: 0,
max_millis: 0,
}
}
}
#[cfg(test)]
mod tests {
#[test]
fn limits_default_is_bounded() {
assert!(super::Limits::default().max_versions > 0);
}
}