alef 0.24.6

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
{% if is_first_class %}
{{ indent }}let chunkData = json.data(using: .utf8) ?? Data()
{{ indent }}let chunk = try JSONDecoder().decode({{ item_type }}.self, from: chunkData)
{% else %}
{{ indent }}let chunk = try RustBridge.{{ item_type_from_json }}(json)
{% endif %}