alef 0.60.0

Opinionated polyglot binding generator for Rust libraries
Documentation
import {{ package_name }}.*;
{% if needs_mapper %}import com.fasterxml.jackson.databind.ObjectMapper;
{% endif %}

public final class Example {
    public static void main(String[] args) throws Exception {
{% if needs_mapper %}        var MAPPER = new ObjectMapper();
{% endif %}
{% for line in setup_lines %}        {{ line }}
{% endfor %}
{% if client_factory %}        var baseUrl = System.getenv().getOrDefault("MOCK_SERVER_URL", "") + "/fixtures/{{ fixture_id }}";
        var client = {{ class_name }}.{{ client_factory }}("test-key", baseUrl, null, null, null);
{% if returns_void %}        client.{{ function_name }}({{ args }});
{% else %}        var {{ result_var }} = client.{{ function_name }}({{ args }});
{% endif %}
{% elif returns_void %}        {{ class_name }}.{{ function_name }}({{ args }});
{% else %}        var {{ result_var }} = {{ class_name }}.{{ function_name }}({{ args }});
{% endif %}
    }
}