codama-macros 0.9.2

Procedural macros for the Codama standard
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use codama_macros::codama;

#[codama(default_value = pda("token", [42, invalid, "invalid"]))]
pub struct TestWithUnrecognizedSeeds;

#[codama(default_value = pda("token", [seed(42), seed(value = 43)]))]
pub struct TestWithNamelessSeeds;

#[codama(default_value = pda("token", [seed("mint"), seed("owner")]))]
pub struct TestWithValuelessSeeds;

fn main() {}