reb 0.1.1

Develop simple web apps using Rust and WebAssembly with elegant syntax.
Documentation
use web_sys::*;
use wasm_bindgen::JsValue;

// Logs items to console
pub fn log(args: &[&str]) {
    console::log_1(&JsValue::from_str(&args.join(" ")))
}

// Clears the console
pub fn clear() {
    console::clear()
}

// Error to the console
pub fn error(args: &[&str]) {
    console::error_1(&JsValue::from_str(&args.join(" ")))
}

// Debug to the console
pub fn debug(args: &[&str]) {
    console::debug_1(&JsValue::from_str(&args.join(" ")))
}

// Warn to the console
pub fn warn(args: &[&str]) {
    console::warn_1(&JsValue::from_str(&args.join(" ")))
}