File tree 4 files changed +16
-2
lines changed
4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -502,6 +502,10 @@ pub mod log;
502
502
pub mod nonce;
503
503
pub mod program;
504
504
pub mod program_error;
505
+ #[ deprecated(
506
+ since = "2.3.0" ,
507
+ note = "Use `solana_bincode::limited_deserialize` instead"
508
+ ) ]
505
509
pub mod program_utils;
506
510
pub mod secp256k1_program;
507
511
pub mod slot_hashes;
Original file line number Diff line number Diff line change @@ -126,7 +126,10 @@ pub mod system_instruction {
126
126
#[ allow( deprecated) ]
127
127
pub use solana_program:: system_instruction:: * ;
128
128
}
129
- #[ deprecated( since = "2.3.0" , note = "Use `solana_sdk_ids::system_program` instead" ) ]
129
+ #[ deprecated(
130
+ since = "2.3.0" ,
131
+ note = "Use `solana_system_interface::program` instead"
132
+ ) ]
130
133
pub mod system_program {
131
134
#[ allow( deprecated) ]
132
135
pub use solana_program:: system_program:: * ;
@@ -372,7 +375,7 @@ pub mod exit {
372
375
}
373
376
374
377
/// Convenience macro for `AddAssign` with saturating arithmetic.
375
- /// Replace by `std::num::Saturating` once stable
378
+ # [ deprecated ( since = "2.3.0" , note = "Use `std::num::Saturating` instead" ) ]
376
379
#[ macro_export]
377
380
macro_rules! saturating_add_assign {
378
381
( $i: expr, $v: expr) => { {
@@ -383,6 +386,7 @@ macro_rules! saturating_add_assign {
383
386
pub extern crate bs58;
384
387
385
388
#[ cfg( test) ]
389
+ #[ allow( deprecated) ]
386
390
mod tests {
387
391
#[ test]
388
392
fn test_saturating_add_assign ( ) {
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ use crate::instruction::InstructionError;
6
6
7
7
/// Deserialize with a limit based the maximum amount of data a program can expect to get.
8
8
/// This function should be used in place of direct deserialization to help prevent OOM errors
9
+ #[ deprecated(
10
+ since = "2.3.0" ,
11
+ note = "Use `solana_bincode::limited_deserialize` instead"
12
+ ) ]
9
13
pub fn limited_deserialize < T > ( instruction_data : & [ u8 ] ) -> Result < T , InstructionError >
10
14
where
11
15
T : serde:: de:: DeserializeOwned ,
17
21
}
18
22
19
23
#[ cfg( test) ]
24
+ #[ allow( deprecated) ]
20
25
pub mod tests {
21
26
use super :: * ;
22
27
Original file line number Diff line number Diff line change
1
+ #![ deprecated( since = "2.3.0" , note = "Use `solana_rpc_client_api::port` instead" ) ]
1
2
//! RPC default port numbers.
2
3
3
4
/// Default port number for JSON RPC API
You can’t perform that action at this time.
0 commit comments