Skip to content

Commit 9be72f2

Browse files
committed
Fixup docs build
1 parent 626033b commit 9be72f2

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

example-mocks/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ edition = { workspace = true }
1111

1212
[package.metadata.docs.rs]
1313
targets = ["x86_64-unknown-linux-gnu"]
14+
all-features = true
15+
rustdoc-args = ["--cfg=docsrs"]
1416

1517
[dependencies]
1618
serde = { workspace = true }
@@ -26,3 +28,6 @@ solana-pubkey = { workspace = true }
2628
solana-sdk-ids = { workspace = true }
2729
solana-system-interface = { workspace = true }
2830
thiserror = { workspace = true }
31+
32+
[features]
33+
dev-context-only-utils = ["solana-system-interface/bincode"]

example-mocks/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
1313
#![doc(hidden)]
1414
#![allow(clippy::new_without_default)]
15+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
1516

1617
pub mod solana_rpc_client {
1718
pub mod rpc_client {

program/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ solana-define-syscall = { workspace = true }
102102

103103
[dev-dependencies]
104104
solana-pubkey = { workspace = true, features = ["dev-context-only-utils"] }
105-
solana-system-interface = { workspace = true }
105+
solana-system-interface = { workspace = true, features = ["bincode"] }
106106
solana-sysvar = { workspace = true, features = ["dev-context-only-utils"] }
107107

108108
[lints]

system-interface/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repository = { workspace = true }
88
homepage = { workspace = true }
99
license = { workspace = true }
1010
edition = { workspace = true }
11-
rust_version = "1.81.0"
11+
rust-version = "1.81.0"
1212

1313
[package.metadata.docs.rs]
1414
targets = ["x86_64-unknown-linux-gnu"]

system-interface/src/instruction.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
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
4042
use 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)?;

0 commit comments

Comments
 (0)