alef 0.23.52

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{%- if doc_comment %}
{{ doc_comment }}
{% endif -%}
{% if has_safety_doc -%}
/// # Safety
{{ safety_doc }}
{% endif -%}
{% if allow_clippy %}#[allow({{ allow_clippy }})]
{% endif -%}
#[unsafe(no_mangle)]
pub unsafe extern "C" fn {{ fn_name }}(
{% for param in params -%}
{{ param }}{% if not loop.last %},
{% endif %}
{% endfor -%}
){% if return_type %} -> {{ return_type }}{% endif %} {