-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix solana-address-lookup-table-program
compilation
#34353
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,10 @@ | |
#![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; | ||
|
||
#[cfg(not(target_os = "solana"))] | ||
#[deprecated( | ||
since = "1.17.0", | ||
note = "Please use `solana_sdk::address_lookup_table` instead" | ||
|
@@ -13,3 +15,14 @@ pub use solana_sdk::address_lookup_table::{ | |
program::{check_id, id, ID}, | ||
state, | ||
}; | ||
|
||
#[cfg(target_os = "solana")] | ||
#[deprecated( | ||
since = "1.17.0", | ||
note = "Please use `solana_program::address_lookup_table` instead" | ||
)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, this is an annoyance with Rust... I really wish these did something, but I agree these are useful |
||
pub use solana_program::address_lookup_table::{ | ||
error, instruction, | ||
program::{check_id, id, ID}, | ||
state, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could probably just export from
solana-program
to avoid extracfg
checks sincesolana-sdk
just re-exports fromsolana-program
but seperation seems more organized.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, this is the way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 2bce424