olin 0.3.0

A small runtime library to help out programs linked against CommonWA targeting Olin. This will only be useful on the wasm32-unknown-unknown target.
Documentation
1
2
3
4
5
6
7
use std::panic;

pub fn set_hook() {
    panic::set_hook(Box::new(|pi| {
        crate::log::error(&format!("panic: {:?}", pi));
    }));
}