From 8a73a80999a58d9d6d9742d316583d680dd43d9e Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Mon, 2 Oct 2023 20:07:16 -0600 Subject: [PATCH] Use `doc_auto_cfg` Replaces manual `cfg(doc(...))` annotations with automatically generated ones using the `doc_auto_cfg` feature. --- cosmos-sdk-proto/src/lib.rs | 3 +-- .../src/prost/cosmos-sdk/cosmos.app.v1alpha1.tonic.rs | 3 --- .../src/prost/cosmos-sdk/cosmos.auth.v1beta1.tonic.rs | 3 --- .../src/prost/cosmos-sdk/cosmos.authz.v1beta1.tonic.rs | 6 ------ .../src/prost/cosmos-sdk/cosmos.bank.v1beta1.tonic.rs | 6 ------ .../src/prost/cosmos-sdk/cosmos.base.node.v1beta1.tonic.rs | 3 --- .../cosmos-sdk/cosmos.base.reflection.v1beta1.tonic.rs | 3 --- .../cosmos-sdk/cosmos.base.reflection.v2alpha1.tonic.rs | 3 --- .../cosmos-sdk/cosmos.base.tendermint.v1beta1.tonic.rs | 3 --- .../src/prost/cosmos-sdk/cosmos.crisis.v1beta1.tonic.rs | 3 --- .../prost/cosmos-sdk/cosmos.distribution.v1beta1.tonic.rs | 6 ------ .../src/prost/cosmos-sdk/cosmos.evidence.v1beta1.tonic.rs | 6 ------ .../src/prost/cosmos-sdk/cosmos.feegrant.v1beta1.tonic.rs | 6 ------ .../src/prost/cosmos-sdk/cosmos.gov.v1.tonic.rs | 6 ------ .../src/prost/cosmos-sdk/cosmos.gov.v1beta1.tonic.rs | 6 ------ .../src/prost/cosmos-sdk/cosmos.group.v1.tonic.rs | 6 ------ .../src/prost/cosmos-sdk/cosmos.mint.v1beta1.tonic.rs | 3 --- .../src/prost/cosmos-sdk/cosmos.nft.v1beta1.tonic.rs | 6 ------ .../src/prost/cosmos-sdk/cosmos.params.v1beta1.tonic.rs | 3 --- .../src/prost/cosmos-sdk/cosmos.slashing.v1beta1.tonic.rs | 6 ------ .../src/prost/cosmos-sdk/cosmos.staking.v1beta1.tonic.rs | 6 ------ .../src/prost/cosmos-sdk/cosmos.tx.v1beta1.tonic.rs | 3 --- .../src/prost/cosmos-sdk/cosmos.upgrade.v1beta1.tonic.rs | 6 ------ .../src/prost/cosmos-sdk/cosmos.vesting.v1beta1.tonic.rs | 3 --- .../ibc.applications.interchain_accounts.controller.v1.rs | 2 -- .../ibc-go/ibc.applications.interchain_accounts.host.v1.rs | 2 -- .../src/prost/ibc-go/ibc.applications.transfer.v1.rs | 4 ---- cosmos-sdk-proto/src/prost/ibc-go/ibc.core.channel.v1.rs | 4 ---- cosmos-sdk-proto/src/prost/ibc-go/ibc.core.client.v1.rs | 4 ---- .../src/prost/ibc-go/ibc.core.connection.v1.rs | 4 ---- cosmos-sdk-proto/src/prost/wasmd/cosmwasm.wasm.v1.tonic.rs | 4 ---- cosmrs/src/crypto/secp256k1/signing_key.rs | 3 --- cosmrs/src/lib.rs | 5 +---- cosmrs/src/tx.rs | 1 - cosmrs/src/tx/raw.rs | 1 - proto-build/src/main.rs | 7 ++----- 36 files changed, 4 insertions(+), 145 deletions(-) diff --git a/cosmos-sdk-proto/src/lib.rs b/cosmos-sdk-proto/src/lib.rs index 4e96f921..693c7b6f 100644 --- a/cosmos-sdk-proto/src/lib.rs +++ b/cosmos-sdk-proto/src/lib.rs @@ -2,7 +2,7 @@ #![doc( html_logo_url = "https://raw.githubusercontent.com/cosmos/cosmos-rust/main/.images/cosmos.png" )] -#![cfg_attr(docsrs, feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] #![allow( rustdoc::bare_urls, rustdoc::broken_intra_doc_links, @@ -227,7 +227,6 @@ pub mod cosmos { /// CosmWasm protobuf definitions. #[cfg(feature = "cosmwasm")] -#[cfg_attr(docsrs, doc(cfg(feature = "cosmwasm")))] pub mod cosmwasm { /// Messages and services handling CosmWasm. pub mod wasm { diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.app.v1alpha1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.app.v1alpha1.tonic.rs index 54f71c80..15c48c6a 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.app.v1alpha1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.app.v1alpha1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -13,7 +12,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -113,7 +111,6 @@ pub mod query_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.auth.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.auth.v1beta1.tonic.rs index ac62b479..a11b2e8d 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.auth.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.auth.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -277,7 +275,6 @@ pub mod query_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.authz.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.authz.v1beta1.tonic.rs index b0249384..ad118f76 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.authz.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.authz.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -151,7 +149,6 @@ pub mod query_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; @@ -404,7 +401,6 @@ pub mod query_server { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -414,7 +410,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -542,7 +537,6 @@ pub mod msg_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.bank.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.bank.v1beta1.tonic.rs index 5296314a..2d2705ca 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.bank.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.bank.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -268,7 +266,6 @@ pub mod query_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; @@ -778,7 +775,6 @@ pub mod query_server { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -788,7 +784,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -900,7 +895,6 @@ pub mod msg_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.node.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.node.v1beta1.tonic.rs index 10826695..006e2c3d 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.node.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.node.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod service_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod service_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl ServiceClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -111,7 +109,6 @@ pub mod service_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod service_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.reflection.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.reflection.v1beta1.tonic.rs index 6ac3e946..cd866d03 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.reflection.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.reflection.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod reflection_service_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod reflection_service_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl ReflectionServiceClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -135,7 +133,6 @@ pub mod reflection_service_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod reflection_service_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.reflection.v2alpha1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.reflection.v2alpha1.tonic.rs index 5df68ce0..5d99469a 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.reflection.v2alpha1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.reflection.v2alpha1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod reflection_service_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod reflection_service_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl ReflectionServiceClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -227,7 +225,6 @@ pub mod reflection_service_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod reflection_service_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.tendermint.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.tendermint.v1beta1.tonic.rs index 866a4ef0..69c15fc5 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.tendermint.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.base.tendermint.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod service_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod service_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl ServiceClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -246,7 +244,6 @@ pub mod service_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod service_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.crisis.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.crisis.v1beta1.tonic.rs index cf2b6a66..a3235145 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.crisis.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.crisis.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -109,7 +107,6 @@ pub mod msg_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.distribution.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.distribution.v1beta1.tonic.rs index ab9b2f1c..e7afb503 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.distribution.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.distribution.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -300,7 +298,6 @@ pub mod query_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; @@ -844,7 +841,6 @@ pub mod query_server { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -854,7 +850,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -1023,7 +1018,6 @@ pub mod msg_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.evidence.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.evidence.v1beta1.tonic.rs index 72b1d5ed..f2ac5933 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.evidence.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.evidence.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -131,7 +129,6 @@ pub mod query_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; @@ -338,7 +335,6 @@ pub mod query_server { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -348,7 +344,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -446,7 +441,6 @@ pub mod msg_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.feegrant.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.feegrant.v1beta1.tonic.rs index bafdc24b..b6e1c5e5 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.feegrant.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.feegrant.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -157,7 +155,6 @@ pub mod query_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; @@ -412,7 +409,6 @@ pub mod query_server { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -422,7 +418,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -542,7 +537,6 @@ pub mod msg_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.gov.v1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.gov.v1.tonic.rs index 8fb01dfe..b774ac4f 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.gov.v1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.gov.v1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -234,7 +232,6 @@ pub mod query_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; @@ -693,7 +690,6 @@ pub mod query_server { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -703,7 +699,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -869,7 +864,6 @@ pub mod msg_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.gov.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.gov.v1beta1.tonic.rs index bd4f37da..92ffc6da 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.gov.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.gov.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -235,7 +233,6 @@ pub mod query_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; @@ -694,7 +691,6 @@ pub mod query_server { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -704,7 +700,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -853,7 +848,6 @@ pub mod msg_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.group.v1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.group.v1.tonic.rs index 2f28651d..b49aa300 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.group.v1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.group.v1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -367,7 +365,6 @@ pub mod query_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; @@ -1113,7 +1110,6 @@ pub mod query_server { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -1123,7 +1119,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -1481,7 +1476,6 @@ pub mod msg_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.mint.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.mint.v1beta1.tonic.rs index ce4ca102..ec21e2d7 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.mint.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.mint.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -148,7 +146,6 @@ pub mod query_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.nft.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.nft.v1beta1.tonic.rs index 458e5fef..73a14211 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.nft.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.nft.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -215,7 +213,6 @@ pub mod query_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; @@ -632,7 +629,6 @@ pub mod query_server { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -642,7 +638,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -736,7 +731,6 @@ pub mod msg_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.params.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.params.v1beta1.tonic.rs index 1ee26813..7e18c4ed 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.params.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.params.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -128,7 +126,6 @@ pub mod query_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.slashing.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.slashing.v1beta1.tonic.rs index 04d326ef..6c483a4f 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.slashing.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.slashing.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -152,7 +150,6 @@ pub mod query_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; @@ -401,7 +398,6 @@ pub mod query_server { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -411,7 +407,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -505,7 +500,6 @@ pub mod msg_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.staking.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.staking.v1beta1.tonic.rs index 2a5e480c..751795ee 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.staking.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.staking.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -398,7 +396,6 @@ pub mod query_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; @@ -1165,7 +1162,6 @@ pub mod query_server { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -1175,7 +1171,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -1376,7 +1371,6 @@ pub mod msg_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.tx.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.tx.v1beta1.tonic.rs index 5b5a0181..6afb442d 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.tx.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.tx.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod service_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod service_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl ServiceClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -184,7 +182,6 @@ pub mod service_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod service_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.upgrade.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.upgrade.v1beta1.tonic.rs index cc25428c..c1eb4e5a 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.upgrade.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.upgrade.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -198,7 +196,6 @@ pub mod query_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; @@ -540,7 +537,6 @@ pub mod query_server { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -550,7 +546,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -669,7 +664,6 @@ pub mod msg_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.vesting.v1beta1.tonic.rs b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.vesting.v1beta1.tonic.rs index 1e7d2082..6d3d3331 100644 --- a/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.vesting.v1beta1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/cosmos-sdk/cosmos.vesting.v1beta1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -160,7 +158,6 @@ pub mod msg_client { } /// Generated server implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_server { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.controller.v1.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.controller.v1.rs index ba3b0ce8..dbee6544 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.controller.v1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.controller.v1.rs @@ -21,7 +21,6 @@ pub struct QueryParamsResponse { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -32,7 +31,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.host.v1.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.host.v1.rs index 0cd82f71..f049f24e 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.host.v1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.interchain_accounts.host.v1.rs @@ -24,7 +24,6 @@ pub struct QueryParamsResponse { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -35,7 +34,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.transfer.v1.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.transfer.v1.rs index 24ba5f10..97d401cf 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.transfer.v1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.applications.transfer.v1.rs @@ -34,7 +34,6 @@ pub struct MsgTransfer { pub struct MsgTransferResponse {} /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -45,7 +44,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -246,7 +244,6 @@ pub struct QueryDenomHashResponse { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -257,7 +254,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.channel.v1.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.channel.v1.rs index 70f2d395..dddd8b56 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.channel.v1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.channel.v1.rs @@ -467,7 +467,6 @@ impl ResponseResultType { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -478,7 +477,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -1158,7 +1156,6 @@ pub struct QueryNextSequenceReceiveResponse { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -1169,7 +1166,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.client.v1.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.client.v1.rs index cb0a79f9..0000a1fa 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.client.v1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.client.v1.rs @@ -192,7 +192,6 @@ pub struct MsgSubmitMisbehaviour { pub struct MsgSubmitMisbehaviourResponse {} /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -203,7 +202,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -532,7 +530,6 @@ pub struct QueryUpgradedConsensusStateResponse { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -543,7 +540,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result diff --git a/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.connection.v1.rs b/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.connection.v1.rs index aab85ce8..46ab99ba 100644 --- a/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.connection.v1.rs +++ b/cosmos-sdk-proto/src/prost/ibc-go/ibc.core.connection.v1.rs @@ -262,7 +262,6 @@ pub struct MsgConnectionOpenConfirm { pub struct MsgConnectionOpenConfirmResponse {} /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -273,7 +272,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -577,7 +575,6 @@ pub struct QueryConnectionConsensusStateResponse { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -588,7 +585,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result diff --git a/cosmos-sdk-proto/src/prost/wasmd/cosmwasm.wasm.v1.tonic.rs b/cosmos-sdk-proto/src/prost/wasmd/cosmwasm.wasm.v1.tonic.rs index d0264899..8393eea9 100644 --- a/cosmos-sdk-proto/src/prost/wasmd/cosmwasm.wasm.v1.tonic.rs +++ b/cosmos-sdk-proto/src/prost/wasmd/cosmwasm.wasm.v1.tonic.rs @@ -1,7 +1,6 @@ // @generated /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod msg_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -11,7 +10,6 @@ pub mod msg_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl MsgClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result @@ -226,7 +224,6 @@ pub mod msg_client { } /// Generated client implementations. #[cfg(feature = "grpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "grpc")))] pub mod query_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::http::Uri; @@ -236,7 +233,6 @@ pub mod query_client { inner: tonic::client::Grpc, } #[cfg(feature = "grpc-transport")] - #[cfg_attr(docsrs, doc(cfg(feature = "grpc-transport")))] impl QueryClient { /// Attempt to create a new client by connecting to a given endpoint. pub async fn connect(dst: D) -> Result diff --git a/cosmrs/src/crypto/secp256k1/signing_key.rs b/cosmrs/src/crypto/secp256k1/signing_key.rs index 88b43c84..0d045f64 100644 --- a/cosmrs/src/crypto/secp256k1/signing_key.rs +++ b/cosmrs/src/crypto/secp256k1/signing_key.rs @@ -49,7 +49,6 @@ impl SigningKey { /// Note that [`bip32::DerivationPath`] impls [`std::str::FromStr`] and /// therefore you can use `parse()` to parse it from a string. #[cfg(feature = "bip32")] - #[cfg_attr(docsrs, doc(cfg(feature = "bip32")))] pub fn derive_from_path( seed: impl AsRef<[u8]>, path: &bip32::DerivationPath, @@ -83,7 +82,6 @@ impl TryFrom<&[u8]> for SigningKey { } #[cfg(feature = "bip32")] -#[cfg_attr(docsrs, doc(cfg(feature = "bip32")))] impl From for SigningKey { fn from(xprv: bip32::XPrv) -> SigningKey { SigningKey::from(&xprv) @@ -91,7 +89,6 @@ impl From for SigningKey { } #[cfg(feature = "bip32")] -#[cfg_attr(docsrs, doc(cfg(feature = "bip32")))] impl From<&bip32::XPrv> for SigningKey { fn from(xprv: &bip32::XPrv) -> SigningKey { Self { diff --git a/cosmrs/src/lib.rs b/cosmrs/src/lib.rs index b2571c73..9b4a27bc 100644 --- a/cosmrs/src/lib.rs +++ b/cosmrs/src/lib.rs @@ -2,7 +2,7 @@ #![doc( html_logo_url = "https://raw.githubusercontent.com/cosmos/cosmos-rust/main/.images/cosmos.png" )] -#![cfg_attr(docsrs, feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] #![forbid(unsafe_code)] #![warn( clippy::checked_conversions, @@ -40,7 +40,6 @@ pub mod vesting; pub mod cosmwasm; #[cfg(feature = "dev")] -#[cfg_attr(docsrs, doc(cfg(feature = "dev")))] pub mod dev; mod base; @@ -57,9 +56,7 @@ pub use eyre::Report as ErrorReport; pub use tendermint; #[cfg(feature = "bip32")] -#[cfg_attr(docsrs, doc(cfg(feature = "bip32")))] pub use bip32; #[cfg(feature = "rpc")] -#[cfg_attr(docsrs, doc(cfg(feature = "rpc")))] pub use tendermint_rpc as rpc; diff --git a/cosmrs/src/tx.rs b/cosmrs/src/tx.rs index 172e1d59..c3bac714 100644 --- a/cosmrs/src/tx.rs +++ b/cosmrs/src/tx.rs @@ -172,7 +172,6 @@ impl Tx { /// Use RPC to find a transaction by its hash. #[cfg(feature = "rpc")] - #[cfg_attr(docsrs, doc(cfg(feature = "rpc")))] pub async fn find_by_hash(rpc_client: &C, tx_hash: Hash) -> Result where C: rpc::Client + Send + Sync, diff --git a/cosmrs/src/tx/raw.rs b/cosmrs/src/tx/raw.rs index 93272214..421e7710 100644 --- a/cosmrs/src/tx/raw.rs +++ b/cosmrs/src/tx/raw.rs @@ -32,7 +32,6 @@ impl Raw { /// Broadcast this transaction using the provided RPC client #[cfg(feature = "rpc")] - #[cfg_attr(docsrs, doc(cfg(feature = "rpc")))] pub async fn broadcast_commit(&self, client: &C) -> Result where C: rpc::Client + Send + Sync, diff --git a/proto-build/src/main.rs b/proto-build/src/main.rs index 3a8cd86d..2fd7d647 100644 --- a/proto-build/src/main.rs +++ b/proto-build/src/main.rs @@ -356,22 +356,19 @@ fn copy_and_patch(src: impl AsRef, dest: impl AsRef) -> io::Result<( ( "/// Generated client implementations.", "/// Generated client implementations.\n\ - #[cfg(feature = \"grpc\")]\n\ - #[cfg_attr(docsrs, doc(cfg(feature = \"grpc\")))]", + #[cfg(feature = \"grpc\")]", ), // Feature-gate gRPC impls which use `tonic::transport` ( "impl(.+)tonic::transport(.+)", "#[cfg(feature = \"grpc-transport\")]\n \ - #[cfg_attr(docsrs, doc(cfg(feature = \"grpc-transport\")))]\n \ impl${1}tonic::transport${2}", ), // Feature-gate gRPC server modules ( "/// Generated server implementations.", "/// Generated server implementations.\n\ - #[cfg(feature = \"grpc\")]\n\ - #[cfg_attr(docsrs, doc(cfg(feature = \"grpc\")))]", + #[cfg(feature = \"grpc\")]", ), ];