Skip to content

Commit

Permalink
Fix duplicate / incorrect docs in solana_sdk by removing the solana_p…
Browse files Browse the repository at this point in the history
…rogram::* import (#26588)

* Make solana_sdk imports from solana_program explicit.

* Adjust imports
  • Loading branch information
brson authored Aug 10, 2022
1 parent a77131a commit 96a8f19
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,21 @@ extern crate self as solana_sdk;

#[cfg(feature = "full")]
pub use signer::signers;
pub use solana_program::*;
// These solana_program imports could be *-imported, but that causes a bunch of
// confusing duplication in the docs due to a rustdoc bug. #26211
#[cfg(not(target_os = "solana"))]
pub use solana_program::program_stubs;
pub use solana_program::{
account_info, address_lookup_table_account, blake3, borsh, bpf_loader, bpf_loader_deprecated,
bpf_loader_upgradeable, clock, clone_zeroed, config, copy_field, custom_heap_default,
custom_panic_default, debug_account_data, declare_deprecated_sysvar_id, declare_sysvar_id,
decode_error, ed25519_program, epoch_schedule, fee_calculator, impl_sysvar_get, incinerator,
instruction, keccak, lamports, loader_instruction, loader_upgradeable_instruction, message,
msg, native_token, nonce, program, program_error, program_memory, program_option, program_pack,
rent, sanitize, sdk_ids, secp256k1_program, secp256k1_recover, serialize_utils, short_vec,
slot_hashes, slot_history, stake, stake_history, syscalls, system_instruction, system_program,
sysvar, unchecked_div_by_const, vote, wasm_bindgen,
};

pub mod account;
pub mod account_utils;
Expand Down

0 comments on commit 96a8f19

Please sign in to comment.