KiwiCodec.RustlerGenerator.SparseHelpers (kiwi_codec v0.3.0)

Copy Markdown View Source

Builds RustQ-authored shared sparse helper functions for generated Rustler decoders.

These helpers are used when callers provide :decoder_sources, allowing RustQ to read the downstream Decoder implementation and infer fallible method propagation from real Rust metadata.

Summary

Functions

fragments(decoder_sources, opts \\ [])

@spec fragments(
  [Path.t()] | Path.t(),
  keyword()
) :: [RustQ.Rust.Fragment.t()]

macro_call(name, args)

@spec macro_call(
  atom(),
  keyword()
) :: RustQ.Rust.Fragment.t()