#![allow(
clippy::missing_errors_doc,
clippy::redundant_pub_crate,
clippy::too_many_lines,
clippy::missing_panics_doc,
clippy::module_name_repetitions,
clippy::similar_names,
clippy::many_single_char_names
)]
mod env;
mod error;
mod export;
mod olean;
pub use env::{
search_path, Binder, Body, Const, Ctor, Defn, Env, Expr, ExprId, Exprs, Hints, Id, Inductive,
Kind, Level, LevelId, Name, NameId, QuotKind, Rec, Rule, Table, ANON, ZERO,
};
pub use error::{Error, Result};
pub use export::{Counts, Exporter};
pub use olean::{Header, SUPPORTED};
const STACK: usize = 1 << 30;
pub fn with_big_stack<T: Send>(f: impl FnOnce() -> T + Send) -> T {
std::thread::scope(|s| {
std::thread::Builder::new()
.stack_size(STACK)
.spawn_scoped(s, f)
.expect("spawn")
.join()
.unwrap_or_else(|e| std::panic::resume_unwind(e))
})
}