File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
33Generates a crate for cross-program invocations to an Anchor program from a JSON IDL.
44
5+ Now updated for Anchor 0.31.1!
6+
57## Usage
68
79In a new crate, write:
810
911``` skip
1012anchor_gen::generate_cpi_crate!("../../examples/govern-cpi/idl.json");
11-
12- declare_id!("GjphYQcbP1m3FuDyCTUJf2mUMxKPE3j6feWU1rxvC7Ps");
1313```
1414
1515This will generate a fully functional Rust CPI client for your IDL.
Original file line number Diff line number Diff line change 11//! Generates a crate for cross-program invocations to an Anchor program from a JSON IDL.
22//!
3+ //! Now updated for Anchor 0.31.1!
4+ //!
35//! # Usage
46//!
57//! In a new crate, write:
68//!
79//! ```skip
810//! anchor_gen::generate_cpi_crate!("../../examples/govern-cpi/idl.json");
9- //!
10- //! declare_id!("GjphYQcbP1m3FuDyCTUJf2mUMxKPE3j6feWU1rxvC7Ps");
1111//! ```
1212//!
1313//! This will generate a fully functional Rust CPI client for your IDL.
You can’t perform that action at this time.
0 commit comments