1 2 3 4 5 6 7 8 9 10 11 12 13 14
extern crate holochain_core_types; extern crate wasm_bindgen; use wasm_bindgen::prelude::*; /// There isn't really any reason to export this /// but we need something to prove out the wasm build #[wasm_bindgen] #[allow(clippy::blacklisted_name)] pub fn fast_foo(foo: &str) -> Result<String, JsValue> { // for speed return `foo` without validating that it is "foo" // foo validation is an upstream concern Ok(foo.to_string()) }