Skip to content

Commit

Permalink
use 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 12, 2024
1 parent 1b7bb4e commit 29c1992
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/transaction-error/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ serde = ["dep:serde", "dep:serde_derive"]

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

[lints]
workspace = true
1 change: 1 addition & 0 deletions sdk/transaction-error/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#[cfg(feature = "serde")]
use serde_derive::{Deserialize, Serialize};
#[cfg(feature = "frozen-abi")]
Expand Down

0 comments on commit 29c1992

Please sign in to comment.