Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
v1.17: Fix solana-address-lookup-table-program compilation (backpor…
Browse files Browse the repository at this point in the history
…t of #34353) (#34357)

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`

(cherry picked from commit 46921b3)

Co-authored-by: acheron <98934430+acheroncrypto@users.noreply.github.com>
  • Loading branch information
mergify[bot] and acheroncrypto authored Dec 7, 2023
1 parent fe8f77e commit d1858aa
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 d1858aa

Please sign in to comment.