Skip to content

Commit

Permalink
add deprecations to re-exports
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Oct 22, 2024
1 parent 474549b commit 7645aa8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions sdk/program/src/message/address_loader.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
use super::v0::{LoadedAddresses, MessageAddressTableLookup};
#[deprecated(
since = "2.1.0",
note = "Use solana_transaction_error::AddressLoaderError instead"
)]
pub use solana_transaction_error::AddressLoaderError;

pub trait AddressLoader: Clone {
Expand Down
4 changes: 4 additions & 0 deletions sdk/program/src/message/sanitized.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#[deprecated(
since = "2.1.0",
note = "Use solana_transaction_error::SanitizeMessageError instead"
)]
pub use solana_transaction_error::SanitizeMessageError;
use {
crate::{
Expand Down
4 changes: 3 additions & 1 deletion sdk/src/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ use {
mod sanitized;
mod versioned;

pub use {sanitized::*, solana_transaction_error::*, versioned::*};
#[deprecated(since = "2.1.0", note = "Use solana_transaction_error crate instead")]
pub use solana_transaction_error::*;
pub use {sanitized::*, versioned::*};

#[derive(PartialEq, Eq, Clone, Copy, Debug)]
pub enum TransactionVerificationMode {
Expand Down
1 change: 1 addition & 0 deletions sdk/src/transport.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//! Defines the [`TransportError`] type.
#![cfg(feature = "full")]
#[deprecated(since = "2.1.0", note = "Use solana_transaction_error crate instead")]
pub use solana_transaction_error::{TransportError, TransportResult as Result};

0 comments on commit 7645aa8

Please sign in to comment.