alef 0.63.0

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 needs_foundation %}import Foundation
{% endif %}
import {{ module }}

{{ body }}
{% for operation in presentation %}
{% if operation.kind == "show" %}
{{ "print" if operation.display else "debugPrint" }}({{ operation.expression }})
{% else %}
for {{ operation.item }} in {{ operation.expression }}{% if operation.optional %} ?? []{% endif %} {
{% for field in operation.fields %}
    {{ "print" if operation.display else "debugPrint" }}({{ field }})
{% endfor %}
}
{% endif %}
{% endfor %}