alef 0.109.6

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
{% for line in doc_lines %}
/// {{ line }}
{% endfor %}
{% for attr in attrs %}
{{ attr }}
{% endfor %}
#[wasm_bindgen(constructor)]
pub fn new({{ param_list }}) -> {{ struct_name }} {
{% if use_defaults %}
    let defaults = {{ struct_name }}::default();
{% endif %}
    {{ struct_name }} { {{ assignments }} }
}