alef 0.23.35

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
#[napi(js_name = "{{ camel_fn_name }}")]
pub fn _alef_{{ clear_fn }}() -> napi::Result<()> {
    {{ host_path }}().map_err(|e| napi::Error::new(
        napi::Status::GenericFailure,
        format!("{}", e),
    ))
}