Skip to main content

Crate carbon_macros

Crate carbon_macros 

Source
Expand description

Declarative helper macros for decoder authors.

no_std-compatible — usable inside generated decoder crates without pulling in std.

§Components

  • try_decode_instructions! — match an instruction’s data + accounts against a list of (variant, type) pairs and return the first hit.

Modules§

try_decode_ixs

Macros§

try_decode_instructions
Try-decode a Solana Instruction against a series of variant/type pairs, returning the first variant whose decode and arrange_accounts both succeed.