#[cfg(all(not(target_family = "wasm"), feature = "cli"))]
mod cli;
#[cfg(all(not(target_family = "wasm"), feature = "cli"))]
fn main() -> color_eyre::eyre::Result<()> {
const STACK_SIZE: usize = 8 * 1024 * 1024;
let thread = std::thread::Builder::new()
.stack_size(STACK_SIZE)
.spawn(cli::main)
.expect("failed to spawn main thread");
thread.join().expect("main thread panicked")?;
Ok(())
}
#[cfg(any(target_family = "wasm", not(feature = "cli")))]
fn main() {
panic!("Crate is not built with the `cli` feature enabled, or was built for a wasm target.");
}