yellowstone-vixen-proc-macro

Crates.ioyellowstone-vixen-proc-macro
lib.rsyellowstone-vixen-proc-macro
version0.6.0-alpha.0
created_at2025-12-01 07:58:34.805717+00
updated_at2025-12-01 07:58:34.805717+00
descriptionGenerate a Vixen parser from Codama IDL
homepage
repositoryhttps://github.com/rpcpool/yellowstone-vixen
max_upload_size
id1959434
size42,755
Kyle Espinola (kespinola)

documentation

README

yellowstone-vixen-proc-macro

This crate provides a procedural macro for generating Yellowstone Vixen parser modules from Codama JSON IDL.

Usage

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.

Commit count: 212

cargo fmt