#[cfg(all(not(target_arch = "wasm32"), not(windows), feature = "cli"))]
fn main() {
let code = syntext::cli::run();
std::process::exit(code);
}
#[cfg(all(not(target_arch = "wasm32"), windows, feature = "cli"))]
fn main() {
let handle = std::thread::Builder::new()
.stack_size(8 * 1024 * 1024)
.spawn(syntext::cli::run)
.expect("spawn CLI thread");
let code = match handle.join() {
Ok(code) => code,
Err(payload) => std::panic::resume_unwind(payload),
};
std::process::exit(code);
}
#[cfg(any(target_arch = "wasm32", not(feature = "cli")))]
fn main() {}