diff --git a/sdk/transaction-error/Cargo.toml b/sdk/transaction-error/Cargo.toml index 7e759c02278136..33c24903c1666b 100644 --- a/sdk/transaction-error/Cargo.toml +++ b/sdk/transaction-error/Cargo.toml @@ -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 diff --git a/sdk/transaction-error/src/lib.rs b/sdk/transaction-error/src/lib.rs index 9cf0affc49e5d7..de90f8838e401c 100644 --- a/sdk/transaction-error/src/lib.rs +++ b/sdk/transaction-error/src/lib.rs @@ -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")]