Skip to content

Commit

Permalink
Fix solana-address-lookup-table-program compilation (#34353)
Browse files Browse the repository at this point in the history
* 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`

(cherry picked from commit 46921b3)
  • Loading branch information
acheroncrypto authored and mergify[bot] committed Dec 7, 2023
1 parent 22f4694 commit 4eb46ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions programs/address-lookup-table/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
#![cfg_attr(RUSTC_WITH_SPECIALIZATION, feature(specialization))]
#![cfg_attr(RUSTC_NEEDS_PROC_MACRO_HYGIENE, feature(proc_macro_hygiene))]

#[cfg(not(target_os = "solana"))]
pub mod processor;

#[deprecated(
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,
program::{check_id, id, ID},
state,
Expand Down

0 comments on commit 4eb46ad

Please sign in to comment.