16 releases (5 breaking)
new 0.6.2 | Mar 21, 2025 |
---|---|
0.5.1 | Feb 22, 2025 |
0.4.0 | Dec 19, 2024 |
0.3.0 | Nov 21, 2024 |
#5 in #indexer
1,320 downloads per month
Used in 20 crates
(19 directly)
16KB
54 lines
Carbon Macros
lib.rs
:
Carbon Macros
This crate provides powerful macros for building and processing transaction schemas and decoding instructions dynamically. It includes two main modules:
schema
: Offers theschema!
macro to construct hierarchical transaction schemas with flexible node types, ideal for organizing and validating complex transaction structures.try_decode_ix
: Includes thetry_decode_instructions!
macro, enabling dynamic decoding of instructions into various types based on specified patterns.
Overview
These modules are designed for applications that utilize Carbon, where transaction processing and decoding are essential. The macros in this crate simplify handling diverse instruction types and assembling transaction schemas, reducing boilerplate code and enhancing flexibility in transaction management.
Modules
schema
: For building transaction schemas.try_decode_ix
: For decoding instructions dynamically.
Dependencies
~53–70MB
~1.5M SLoC