#solana #extract #solita #annotated #cli #macro-attributes #blockchain

bin+lib shank-cli

Shank CLI that extracts solita compatible IDL from your Rust Solana program code annotated with shank macro attributes

29 releases

new 0.4.8 Feb 12, 2026
0.4.6 Nov 26, 2025
0.4.3 May 1, 2025
0.4.3-alpha.1 Jan 26, 2025
0.0.1 Mar 22, 2022

#794 in Magic Beans

Download history 383/week @ 2025-10-23 257/week @ 2025-10-30 43/week @ 2025-11-06 74/week @ 2025-11-13 164/week @ 2025-11-20 299/week @ 2025-11-27 75/week @ 2025-12-04 15/week @ 2025-12-11 37/week @ 2025-12-18 21/week @ 2025-12-25 9/week @ 2026-01-01 58/week @ 2026-01-08 100/week @ 2026-01-15 66/week @ 2026-01-22 96/week @ 2026-01-29 125/week @ 2026-02-05

393 downloads per month

Apache-2.0

67KB
1.5K SLoC

shank

Shank CLI that extracts IDL from your Rust Solana program code annotated with shank macro attributes. This IDL can then be fed to solita in order to generate low level TypeScript SDK for that particular Rust program.

shank-logo

Installation

Via Cargo

cargo install shank-cli

Via Yarn/Npm

_Coming soon ... _

Overview

USAGE:
    shank <SUBCOMMAND>

OPTIONS:
    -h, --help    Print help information

SUBCOMMANDS:
    help    Print this message or the help of the given subcommand(s)
    idl

IDL Extraction

USAGE:
    shank idl [OPTIONS]

OPTIONS:
    -h, --help                       Print help information
    -o, --out-dir <OUT_DIR>          Output directory for the IDL JSON [default: idl]
    -r, --crate-root <CRATE_ROOT>    Directory of program crate for which to generate the IDL

LICENSE

Apache-2.0

Dependencies

~5–8MB
~149K SLoC