alef 0.25.37

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
    {{ async_kw }}fun {{ method_name }}({{ params }}): {{ return_type }} {
{% if async %}
        return withContext(Dispatchers.IO) { inner.{{ method_name }}({{ call_args }}){{ optional_suffix }} }
{% elif unit_return %}
        inner.{{ method_name }}({{ call_args }})
{% else %}
        return inner.{{ method_name }}({{ call_args }}){{ optional_suffix }}
{% endif %}
    }