idl-macro

Crates.ioidl-macro
lib.rsidl-macro
version0.1.0
sourcesrc
created_at2022-06-05 22:41:29.421778
updated_at2022-06-05 22:41:29.421778
descriptionGenerates an Anchor CPI crate from a JSON IDL.
homepage
repositoryhttps://github.com/saber-hq/idl-macro
max_upload_size
id600386
size20,648
Ian Macalinao (macalinao)

documentation

README

idl-macro

Generates an Anchor CPI crate from a JSON IDL.

Usage

In a new crate, write:

idl_macro::generate_cpi_crate!("src/idl.json");

declare_id!("GjphYQcbP1m3FuDyCTUJf2mUMxKPE3j6feWU1rxvC7Ps");

This will generate a fully functional Rust CPI client for your IDL.

License

Apache 2.0

Commit count: 45

cargo fmt