File tree Expand file tree Collapse file tree 5 files changed +11
-4
lines changed Expand file tree Collapse file tree 5 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ edition = { workspace = true }
1111
1212[package .metadata .docs .rs ]
1313targets = [" x86_64-unknown-linux-gnu" ]
14+ all-features = true
15+ rustdoc-args = [" --cfg=docsrs" ]
1416
1517[dependencies ]
1618serde = { workspace = true }
@@ -26,3 +28,6 @@ solana-pubkey = { workspace = true }
2628solana-sdk-ids = { workspace = true }
2729solana-system-interface = { workspace = true }
2830thiserror = { workspace = true }
31+
32+ [features ]
33+ dev-context-only-utils = [" solana-system-interface/bincode" ]
Original file line number Diff line number Diff line change 1212
1313#![ doc( hidden) ]
1414#![ allow( clippy:: new_without_default) ]
15+ #![ cfg_attr( docsrs, feature( doc_auto_cfg) ) ]
1516
1617pub mod solana_rpc_client {
1718 pub mod rpc_client {
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ solana-define-syscall = { workspace = true }
102102
103103[dev-dependencies ]
104104solana-pubkey = { workspace = true , features = [" dev-context-only-utils" ] }
105- solana-system-interface = { workspace = true }
105+ solana-system-interface = { workspace = true , features = [ " bincode " ] }
106106solana-sysvar = { workspace = true , features = [" dev-context-only-utils" ] }
107107
108108[lints ]
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ repository = { workspace = true }
88homepage = { workspace = true }
99license = { workspace = true }
1010edition = { workspace = true }
11- rust_version = " 1.81.0"
11+ rust-version = " 1.81.0"
1212
1313[package .metadata .docs .rs ]
1414targets = [" x86_64-unknown-linux-gnu" ]
Original file line number Diff line number Diff line change 3636//! [`invoke`]: https://docs.rs/solana-cpi/latest/solana_cpi/fn.invoke.html
3737//! [`invoke_signed`]: https://docs.rs/solana-cpi/latest/solana_cpi/fn.invoke_signed.html
3838//! [`AccountInfo`]: https://docs.rs/solana-account-info/latest/solana_account_info/struct.AccountInfo.html
39+ //! [`Instruction`]:
40+ //! https://docs.rs/solana-instruction/latest/solana_instruction/struct.Instruction.html
3941
4042use solana_pubkey:: Pubkey ;
4143#[ cfg( feature = "bincode" ) ]
@@ -66,7 +68,7 @@ const NONCE_STATE_SIZE: usize = 80;
6668/// An instruction to the system program.
6769#[ cfg_attr(
6870 feature = "frozen-abi" ,
69- solana_frozen_abi_macro:: frozen_abi( digest = "2LnVTnJg7LxB1FawNZLoQEY8yiYx3MT3paTdx4s5kAXU " ) ,
71+ solana_frozen_abi_macro:: frozen_abi( digest = "8M189WgLE19cw1iYDAFLNJKoAUKyqF9jsKYennJi5BfK " ) ,
7072 derive(
7173 solana_frozen_abi_macro:: AbiExample ,
7274 solana_frozen_abi_macro:: AbiEnumVisitor
@@ -1449,7 +1451,6 @@ pub fn create_nonce_account(
14491451/// # data: vec![0],
14501452/// # owner: solana_sdk::system_program::ID,
14511453/// # executable: false,
1452- /// # rent_epoch: 1,
14531454/// # });
14541455/// let nonce_account = client.get_account(nonce_account_pubkey)?;
14551456/// let nonce_data = solana_rpc_client_nonce_utils::data_from_account(&nonce_account)?;
You can’t perform that action at this time.
0 commit comments