Programming, Cloudflare, Rust, Serverless, Workers.
JsValue> { fields.into_serde().map(Scheme).map_err(into_js_error) } pub fn parse(&self, s: &str) -> Result<JsValue, JsValue> { let filter = self.0.parse(s).map_err(into_js_error)?; JsValue::from_serde(&filter).map_err(into_js_error) } } And by using a higher-level tool called wasm-pack, we also got