alef 0.25.39

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{ header }}#nullable enable

using System;
using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace {{ namespace }};

/// <summary>Context passed to every visitor callback.</summary>
public record {{ context_type }}(
{%- for field in fields %}
    [property: JsonPropertyName("{{ field.wire_name }}")] {{ field.cs_type }} {{ field.cs_name }}{% if not loop.last %},{% endif %}
{%- endfor %}
);