diff --git a/node/Cargo.toml b/node/Cargo.toml index 06502aee..da62eeb1 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -102,4 +102,4 @@ test-utils = ["celestia-types/test-utils"] [package.metadata.docs.rs] features = ["test-utils"] -rustdoc-args = ["--cfg", "docs_rs"] +rustdoc-args = ["--cfg", "docsrs"] diff --git a/node/src/lib.rs b/node/src/lib.rs index 26e96c71..ce50a0e3 100644 --- a/node/src/lib.rs +++ b/node/src/lib.rs @@ -1,4 +1,4 @@ -#![cfg_attr(docs_rs, feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #![doc = include_str!("../README.md")] pub mod blockstore; @@ -11,7 +11,7 @@ pub mod peer_tracker; pub mod store; pub mod syncer; #[cfg(any(test, feature = "test-utils"))] -#[cfg_attr(docs_rs, doc(cfg(feature = "test-utils")))] +#[cfg_attr(docsrs, doc(cfg(feature = "test-utils")))] pub mod test_utils; mod utils; diff --git a/rpc/Cargo.toml b/rpc/Cargo.toml index 5a37b640..069a6b52 100644 --- a/rpc/Cargo.toml +++ b/rpc/Cargo.toml @@ -54,4 +54,4 @@ wasm-bindgen = ["celestia-types/wasm-bindgen"] [package.metadata.docs.rs] features = ["p2p"] -rustdoc-args = ["--cfg", "docs_rs"] +rustdoc-args = ["--cfg", "docsrs"] diff --git a/rpc/src/lib.rs b/rpc/src/lib.rs index 2cf6a0d1..a5f88a57 100644 --- a/rpc/src/lib.rs +++ b/rpc/src/lib.rs @@ -1,4 +1,4 @@ -#![cfg_attr(docs_rs, feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #![doc = include_str!("../README.md")] mod blob; @@ -16,7 +16,7 @@ pub use crate::client::Client; pub use crate::error::{Error, Result}; pub use crate::header::HeaderClient; #[cfg(feature = "p2p")] -#[cfg_attr(docs_rs, doc(cfg(feature = "p2p")))] +#[cfg_attr(docsrs, doc(cfg(feature = "p2p")))] pub use crate::p2p::P2PClient; pub use crate::share::ShareClient; pub use crate::state::StateClient; diff --git a/types/Cargo.toml b/types/Cargo.toml index 2d92ee18..729903db 100644 --- a/types/Cargo.toml +++ b/types/Cargo.toml @@ -57,8 +57,7 @@ test-utils = ["dep:ed25519-consensus", "dep:rand"] wasm-bindgen = ["celestia-tendermint/wasm-bindgen"] [package.metadata.docs.rs] -features = ["p2p", "test-utils"] -rustdoc-args = ["--cfg", "docs_rs"] +rustdoc-args = ["--cfg", "docsrs"] [package.metadata.cargo-udeps.ignore] development = ["indoc"] diff --git a/types/src/lib.rs b/types/src/lib.rs index f75f70d3..b2207ad9 100644 --- a/types/src/lib.rs +++ b/types/src/lib.rs @@ -1,4 +1,4 @@ -#![cfg_attr(docs_rs, feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #![doc = include_str!("../README.md")] pub mod blob; @@ -13,7 +13,7 @@ pub mod hash; pub mod namespaced_data; pub mod nmt; #[cfg(feature = "p2p")] -#[cfg_attr(docs_rs, doc(cfg(feature = "p2p")))] +#[cfg_attr(docsrs, doc(cfg(feature = "p2p")))] pub mod p2p; pub mod row; mod rsmt2d; @@ -22,7 +22,7 @@ mod share; pub mod state; mod sync; #[cfg(any(test, feature = "test-utils"))] -#[cfg_attr(docs_rs, doc(cfg(feature = "test-utils")))] +#[cfg_attr(docsrs, doc(cfg(feature = "test-utils")))] pub mod test_utils; pub mod trust_level; mod validate;