| Crates.io | yellowstone-vixen-proc-macro |
| lib.rs | yellowstone-vixen-proc-macro |
| version | 0.6.0-alpha.0 |
| created_at | 2025-12-01 07:58:34.805717+00 |
| updated_at | 2025-12-01 07:58:34.805717+00 |
| description | Generate a Vixen parser from Codama IDL |
| homepage | |
| repository | https://github.com/rpcpool/yellowstone-vixen |
| max_upload_size | |
| id | 1959434 |
| size | 42,755 |
This crate provides a procedural macro for generating Yellowstone Vixen parser modules from Codama JSON IDL.
Add this crate to your Cargo.toml (usually as a proc-macro dependency):
[dependencies]
borsh = "^1.0.0"
yellowstone-vixen-parser = { version = "0.6.0" }
yellowstone-vixen-proc-macro = { version = "0.6.0" }
Then, in your code:
use yellowstone_vixen_proc_macro::include_vixen_parser;
// Provide the path (relative to your crate root) to your Codama JSON IDL file.
include_vixen_parser!("path/to/idl.json");
This macro will generate Rust modules containing type-safe account and instruction parsers for the specified Solana program.