alef 0.25.37

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
{{ let_bindings }}let result = {{ core_call }}{% if is_async %}.await{% endif %}
{% if map_wasm_error %}
        .map_err(|e| wasm_bindgen::JsValue::from_str(&e.to_string()))?;
{% elif map_js_error %}
        .map_err(|e| JsValue::from_str(&e.to_string()))?;
{% else %}
;
{% endif %}
    {% if ok_return %}Ok({{ return_expr }}){% else %}{{ return_expr }}{% endif %}