Allow procedural macro coupling

This commit is contained in:
Armani Ferrante 2021-01-30 03:49:22 -08:00
parent 5787cec1fa
commit 09ed7f670d
No known key found for this signature in database
GPG Key ID: D597A80BCF8E12B7
3 changed files with 2 additions and 6 deletions

View File

@ -2,9 +2,6 @@ use crate::{Accounts, Sysvar};
use solana_program::account_info::AccountInfo;
use solana_program::sysvar::rent::Rent;
// Needed for the `Accounts` macro.
use crate as anchor_lang;
// The Ctor accounts that can be used to create any account within the program
// itself (instead of creating the account on the client).
//

View File

@ -16,9 +16,6 @@
use crate::prelude::*;
use solana_program::pubkey::Pubkey;
// Needed for the `Accounts` macro.
use crate as anchor_lang;
// The first 8 bytes of an instruction to create or modify the IDL account. This
// instruction is defined outside the main program's instruction enum, so that
// the enum variant tags can align with function source order.

View File

@ -21,6 +21,8 @@
//!
//! Presented here are the Rust primitives for building on Solana.
extern crate self as anchor_lang;
use solana_program::account_info::AccountInfo;
use solana_program::instruction::AccountMeta;
use solana_program::program_error::ProgramError;