alef 0.83.0

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
{% for index, marker, path in file_reads %}
var {{ variable }}File{{ index }} = java.util.Base64.getEncoder().encodeToString(
    java.nio.file.Files.readAllBytes(java.nio.file.Path.of("{{ path }}"))
);
{% endfor %}
var {{ variable }}Json = {{ json_literal }};
{% for index, marker, path in file_reads %}
{{ variable }}Json = {{ variable }}Json.replace("{{ marker }}", {{ variable }}File{{ index }});
{% endfor %}
var {{ variable }} = JsonUtil.fromJson({{ variable }}Json, {{ type_name }}.class);