#idl #solana #shank #extract #attributes #annotated #generate

bin+lib shank-cli

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

22 releases (4 breaking)

0.4.2 Feb 29, 2024
0.3.1-alpha.5 Jan 30, 2024
0.3.0 Oct 31, 2023
0.2.1 Jul 29, 2023
0.0.1 Mar 22, 2022

#3 in #shank

Download history 1/week @ 2024-09-09 75/week @ 2024-09-16 81/week @ 2024-09-23 168/week @ 2024-09-30 154/week @ 2024-10-07 105/week @ 2024-10-14 50/week @ 2024-10-21 36/week @ 2024-10-28 19/week @ 2024-11-04 26/week @ 2024-11-11 27/week @ 2024-11-18 13/week @ 2024-11-25 20/week @ 2024-12-02 21/week @ 2024-12-09

82 downloads per month

Apache-2.0

45KB
1K 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–12MB
~147K SLoC