10 unstable releases (3 breaking)

new 0.4.0 Dec 19, 2024
0.3.1 Dec 1, 2024
0.3.0 Nov 21, 2024
0.2.1 Nov 13, 2024
0.1.1 Oct 22, 2024

#9 in #carbon

Download history 249/week @ 2024-10-16 107/week @ 2024-10-23 47/week @ 2024-10-30 359/week @ 2024-11-06 406/week @ 2024-11-13 328/week @ 2024-11-20 236/week @ 2024-11-27 188/week @ 2024-12-04 173/week @ 2024-12-11

940 downloads per month
Used in carbon-core

MIT license

15KB
54 lines

Carbon Macros

This crate provides powerful macros for building and processing transaction schemas and decoding instructions dynamically. It includes two main modules:

  • schema: Offers the schema! macro to construct hierarchical transaction schemas with flexible node types, ideal for organizing and validating complex transaction structures.
  • try_decode_ix: Includes the try_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

~72MB
~1.5M SLoC