You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Deprecate re-exports more loudly
There are many different crates and types that we would like to remove
from the sdk, but they are still re-exported from solana-sdk and
solana-program. The re-exports have a `#[deprecated(...)]` attribute,
but they aren't flagged to downstream users.
Make the re-export deprecations louder by creating a deprecated module
and re-exporting from in there.
These are the types affected
* `DecodeError`: this trait isn't all that useful, and is set to be
removed entirely with anza-xyz#104, so deprecate it here
These are the crates to no longer re-export from solana-program because
they will be moved to program-specific repos:
* `address_lookup_table` -> `solana_address_lookup_table_interface`
* `bpf_loader_upgradeable` -> `solana_loader_v3_interface`
* `loader_upgradeable_instruction` ->
`solana_loader_v3_interface::instruction`
* `loader_v4` -> `solana_loader_v4_interface`
* `loader_v4_instruction` -> `solana_loader_v4_interface::instruction`
* `nonce` -> `solana_nonce`
* `feature` -> `solana_feature_gate_interface`
* `loader_instruction` -> `solana_loader_v2_interface`
* `vote` -> `solana_vote_interface`
* `stake` -> `solana_stake_interface`
* `stake_history` -> `solana_stake_interface::stake_history`
* `system_instruction` -> `solana_system_interface`
* `system_program` -> `solana_sdk_ids::system_program` (not sure about
this one)
Separately, `solana_message` and `solana_sanitize` are no longer
re-exported. They never quite fit in `solana_program`, and caused more
annoyance than anything else. The re-exports remain in `solana_sdk`.
`solana-decode-error` will be removed entirely, so its deprecation is
louder too.
For `solana-sdk`, there are many types that just don't belong, so stop
re-exporting these:
* `commitment_config` -> `solana_commitment_config`
* `genesis_config` -> `solana_genesis_config`
* `hard_forks` -> `solana_hard_forks`
* `rent_collector` -> `solana_rent_collector`
* `alt_bn128` -> `solana_bn254`
* `client` -> `solana_client_traits`
* `compute_budget` -> `solana_compute_budget_interface`
* `derivation_path` -> `solana_derivation_path`
* `ed25519_instruction` -> `solana_ed25519_program`
* `nonce_account` -> `solana_nonce_account`
* `packet` -> `solana_packet`
* `poh_config` -> `solana_poh_config`
* `quic` -> `solana_quic_definitions`
* `rent_debits` -> `solana_rent_debits`
* `secp256k1_instruction` -> `solana_secp256k1_program`
* `secp256k1_recover` -> `solana_secp256k1_recover`
* `system_transaction` -> `solana_system_transaction`
* `exit` -> `solana_validator_exit`
* Address review feedback
0 commit comments