alef 0.25.37

Opinionated polyglot binding generator for Rust libraries
Documentation
    #[frb(sync)]
    pub fn {{ variant_name }}(
        &mut self,
{%- for param in signature_params %}
        {{ param.name }}: {{ param.rust_type }},
{%- endfor %}
        cb: impl Fn(String) -> DartFnFuture<String> + Send + Sync + 'static,
    ) -> i32 {
{%- if wrapper_call %}
        let inner = {{ wrapper_type_path }}::{{ constructor_method }}(
{%- for arg in wrapper_args %}
{%- if arg.kind == "fixed" %}
            {{ arg.value_expr }},
{%- else %}
            {{ arg.param.name }},
{%- endif %}
{%- endfor %}
        );
        self.{{ base_method_name }}({{ wrapper_local_type }} { inner }, cb)
{%- else %}
        self.{{ base_method_name }}({{ signature_params | map(attribute='name') | join(', ') }}, cb)
{%- endif %}
    }