Skip to content

Commit

Permalink
add doc_auto_cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Oct 25, 2024
1 parent 563bbb4 commit e0ab766
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/fee-structure/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ solana-native-token = { workspace = true }

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

[target.'cfg(not(target_os = "solana"))'.dependencies]
solana-program = { workspace = true, default-features = false }
Expand Down
1 change: 1 addition & 0 deletions sdk/fee-structure/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//! Fee structures.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

#[cfg(not(target_os = "solana"))]
use solana_program::message::SanitizedMessage;
Expand Down

0 comments on commit e0ab766

Please sign in to comment.