carbon_macros/lib.rs
1//! # Carbon Macros
2//!
3//! This crate provides powerful macros for building and processing transaction schemas
4//! and decoding instructions dynamically. It includes two main modules:
5//!
6//! - **`schema`**: Offers the `schema!` macro to construct hierarchical transaction schemas
7//! with flexible node types, ideal for organizing and validating complex transaction structures.
8//! - **`try_decode_ix`**: Includes the `try_decode_instructions!` macro, enabling dynamic
9//! decoding of instructions into various types based on specified patterns.
10//!
11//! ## Overview
12//!
13//! These modules are designed for applications that utilize Carbon, where transaction processing
14//! and decoding are essential. The macros in this crate simplify handling diverse
15//! instruction types and assembling transaction schemas, reducing boilerplate code
16//! and enhancing flexibility in transaction management.
17//!
18//! ## Modules
19//!
20//! - **`schema`**: For building transaction schemas.
21//! - **`try_decode_ix`**: For decoding instructions dynamically.
22//!
23
24pub mod schemas;
25pub mod try_decode_ixs;