alef 0.30.13

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
{% if is_async %}
        val handle = withContext(Dispatchers.IO) { {{ bridge_call }} }
        return if (handle == 0L) null else {{ wrapper_type }}(handle)
{% else %}
        val handle = {{ bridge_call }}
        return if (handle == 0L) null else {{ wrapper_type }}(handle)
{% endif %}