alef 0.24.7

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
                        "{{ reg_method }}" => {
                            let bridge = {{ bridge_name }}::new(closure.clone());
                            let handler: Arc<dyn {{ core_import }}::{{ contract_name }}> = Arc::new(bridge);
{% if has_metadata %}
                            if let Some(meta_list) = triple.iter().nth(1).and_then(|x| x.as_list()) {
{% for metadata_binding in metadata_bindings -%}
{{ metadata_binding }}
{% endfor -%}
                                {{ owner_call }}
                            }
{% else %}
                            {{ owner_call }}
{% endif %}
                        }