10 releases (4 breaking)

0.4.2 Feb 29, 2024
0.4.1 Feb 28, 2024
0.3.1-alpha.5 Jan 30, 2024
0.3.0 Oct 31, 2023
0.0.1 Jan 11, 2023

#1891 in Magic Beans

Download history 8970/week @ 2023-12-19 5922/week @ 2023-12-26 9377/week @ 2024-01-02 9839/week @ 2024-01-09 9771/week @ 2024-01-16 9062/week @ 2024-01-23 6964/week @ 2024-01-30 7298/week @ 2024-02-06 5516/week @ 2024-02-13 7625/week @ 2024-02-20 8615/week @ 2024-02-27 8459/week @ 2024-03-05 8651/week @ 2024-03-12 8216/week @ 2024-03-19 8075/week @ 2024-03-26 47216/week @ 2024-04-02

73,740 downloads per month
Used in 55 crates (via shank_macro)

Apache-2.0

250KB
7K SLoC

Shank Build+Test

Collection of shank crates used to annotate Rust programs in order to extract IDL via the included CLI tool. This IDL is used by solita in order to generate program SDKs.

shank-logo

Installation

For usage and installation see the shank-cli Readme.

Crates

  • shank top level crate to be installed and included in your library to add macro annotations
  • shank_cli the CLI tool that extracts IDL from a specified crate into a file
  • shank-macro provides the derive macros shank uses
  • shank-macro-impl implements and tests the derive macros
  • shank-idl processes files of a crate in order to discover shank macros annotations and convert annotated types into an solita compatible IDL
  • shank-render generates Rust impl blocks from specific annotations like account seeds

Development

Fork the repo makes some changes and make sure that all is dandy by running cargo test. Then provide a pull request.

If you are a contributor with access to publish to crates.io do the below in order to publish a new version. NOTE that this only works from the master branch and should be performed after merging a PR into master.

cargo test && cargo release <major|minor|patch>

The above runs all tests and dry-runs the release process. You should verify closely what it is about to do and then re-run the release command as shown below.

cargo release <major|minor|patch> --execute

LICENSE

Apache-2.0

Dependencies

~1.3–1.7MB
~41K SLoC