Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
872 B · 48 lines
Rust
at wip
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849//! FIXME
use wasm_bindgen::prelude::*;
#[cfg(feature = "console_error_panic_hook")]use web_sys::console;
#[cfg(feature = "console_error_panic_hook")]pub fn set_panic_hook() { console_error_panic_hook::set_once();}
// Your code goes here!// FIXME// console::log_1(&JsValue::from_str("Hello world!"));
#[wasm_bindgen]extern "C" { fn alert(s: &str);}
// FIXME// #[wasm_bindgen]// #[derive(Clone, Debug)]// pub struct JsMemStore {// store: InMemoryStore,// }//// #[wasm_bindgen]// pub fn greet() {// alert("Hello!");// }//// #[wasm_bindgen]// pub struct InlineIpld();//// #[wasm_bindgen]// impl InlineIpld {// pub fn add_one(&self, x: u32) -> u32 {// x + 1// }//// pub fn new_memory_store(&self) -> JsMemStore {// JsMemStore {// store: MemoryStore::new(),// }// }// }