light-macros 3.0.0

Macros used in Light Protocol on-chain programs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!-- cargo-rdme start -->

# light-macros

Proc macros for Light Protocol on-chain programs.

| Macro | Description |
|-------|-------------|
| [`pubkey!`]macro@pubkey | Convert base58 public key to `Pubkey` at compile time |
| [`pubkey_array!`]macro@pubkey_array | Convert base58 public key to `[u8; 32]` at compile time |
| [`derive_light_cpi_signer!`]macro@derive_light_cpi_signer | Derive CPI signer PDA, program ID, and bump seed |
| [`derive_light_cpi_signer_pda!`]macro@derive_light_cpi_signer_pda | Derive CPI signer PDA address and bump seed |
| [`#[heap_neutral]`]macro@heap_neutral | Assert a function frees all heap it allocates |
| [`#[derive(Noop)]`]derive@Noop | No-op derive placeholder |

<!-- cargo-rdme end -->