Fix `solana-address-lookup-table-program` compilation (#34353)
* Add checks to decide which SDK crate to use * Make module only available in non-program environments * Remove `solana-sdk` export and only export from `solana-program`
This commit is contained in:
parent
9cb83069d8
commit
46921b3135
|
@ -2,13 +2,14 @@
|
||||||
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
|
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
|
||||||
#![cfg_attr(RUSTC_NEEDS_PROC_MACRO_HYGIENE, feature(proc_macro_hygiene))]
|
#![cfg_attr(RUSTC_NEEDS_PROC_MACRO_HYGIENE, feature(proc_macro_hygiene))]
|
||||||
|
|
||||||
|
#[cfg(not(target_os = "solana"))]
|
||||||
pub mod processor;
|
pub mod processor;
|
||||||
|
|
||||||
#[deprecated(
|
#[deprecated(
|
||||||
since = "1.17.0",
|
since = "1.17.0",
|
||||||
note = "Please use `solana_sdk::address_lookup_table` instead"
|
note = "Please use `solana_program::address_lookup_table` instead"
|
||||||
)]
|
)]
|
||||||
pub use solana_sdk::address_lookup_table::{
|
pub use solana_program::address_lookup_table::{
|
||||||
error, instruction,
|
error, instruction,
|
||||||
program::{check_id, id, ID},
|
program::{check_id, id, ID},
|
||||||
state,
|
state,
|
||||||
|
|
Loading…
Reference in New Issue