use rsciter::*;
fn main() {
if let Err(e) = try_main() {
eprintln!("Error: {e}");
} else {
println!("Ok!");
}
}
const HTML: &'static [u8] = br#"
"#;
fn try_main() -> Result {
app::init()?;
let _window = Window::builder()
.with_event_handler(Handler)
.with_html(HTML)
.build_main()?;
let exit_code = app::run()?;
app::shutdown()?;
Ok(exit_code)
}
struct Handler;
fn print_args(args: &[Value]) -> Result