Skip to content

Commit

Permalink
add doc_auto_cfg like in anza-xyz#3121
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Oct 28, 2024
1 parent e86614b commit c810ab2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/system-instruction/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ edition = { workspace = true }

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
all-features = true
rustdoc-args = ["--cfg=docsrs"]

[dependencies]
num-traits = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions sdk/system-instruction/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
//! [`AccountInfo`]: https://docs.rs/solana-account-info/latest/solana_account_info/struct.AccountInfo.html
//! [`system_program`]: https://docs.rs/solana-program/latest/solana_program/system_program/index.html
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

#[allow(deprecated)]
use {
Expand Down

0 comments on commit c810ab2

Please sign in to comment.