solana_program/
sysvar.rs

1#[deprecated(since = "2.1.0", note = "Use `solana-sysvar-id` crate instead")]
2pub use solana_sysvar_id::{declare_deprecated_sysvar_id, declare_sysvar_id, SysvarId};
3#[deprecated(since = "2.2.0", note = "Use `solana-sysvar` crate instead")]
4#[allow(deprecated)]
5pub use {
6    solana_sdk_ids::sysvar::{check_id, id, ID},
7    solana_sysvar::{
8        clock, epoch_rewards, epoch_schedule, fees, is_sysvar_id, last_restart_slot,
9        recent_blockhashes, rent, rewards, slot_hashes, slot_history, stake_history, Sysvar,
10        ALL_IDS,
11    },
12};
13
14pub mod instructions {
15    #[deprecated(since = "2.2.0", note = "Use solana-instruction crate instead")]
16    pub use solana_instruction::{BorrowedAccountMeta, BorrowedInstruction};
17    #[cfg(not(target_os = "solana"))]
18    #[deprecated(since = "2.2.0", note = "Use solana-instructions-sysvar crate instead")]
19    pub use solana_instructions_sysvar::construct_instructions_data;
20    #[cfg(all(not(target_os = "solana"), feature = "dev-context-only-utils"))]
21    #[deprecated(since = "2.2.0", note = "Use solana-instructions-sysvar crate instead")]
22    pub use solana_instructions_sysvar::serialize_instructions;
23    #[cfg(feature = "dev-context-only-utils")]
24    #[deprecated(since = "2.2.0", note = "Use solana-instructions-sysvar crate instead")]
25    pub use solana_instructions_sysvar::{deserialize_instruction, load_instruction_at};
26    #[deprecated(since = "2.2.0", note = "Use solana-instructions-sysvar crate instead")]
27    #[allow(deprecated)]
28    pub use solana_instructions_sysvar::{
29        get_instruction_relative, load_current_index_checked, load_instruction_at_checked,
30        store_current_index, Instructions,
31    };
32    #[deprecated(since = "2.2.0", note = "Use solana-sdk-ids crate instead")]
33    pub use solana_sdk_ids::sysvar::instructions::{check_id, id, ID};
34}