KiwiCodec.RustlerGenerator.Rusty (kiwi_codec v0.1.1)

Copy Markdown View Source

Rusty-Elixir macro helpers used by KiwiCodec.RustlerGenerator.

These macros are package-internal metaprogramming helpers: they emit defrust decoder functions while keeping control flow in Rusty-Elixir instead of raw Rust source strings.

Summary

Functions

entrypoint(nif_name, decoder_name)

(macro)

enum_decoder(name, variants)

(macro)

message_decoder(name, fields_name, module_static, keys_static, module_name, key_names)

(macro)

message_fields_decoder(name, fields)

(macro)

struct_decoder(name, module_static, keys_static, module_name, key_names, field_exprs)

(macro)