#idl #extract #shank #solana #annotated #attributes #solita

bin+lib shank-gov-cli

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

5 releases

0.3.4 Jan 23, 2024
0.3.3 Jan 23, 2024
0.3.2 Jan 23, 2024
0.3.1 Jan 23, 2024
0.3.0 Jan 23, 2024

#6 in #shank

Download history 28/week @ 2024-01-18 8/week @ 2024-02-22 5/week @ 2024-02-29 61/week @ 2024-03-07 12/week @ 2024-03-14

86 downloads per month

Apache-2.0

46KB
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–14MB
~148K SLoC