Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: enable doc_cfg feature for docsrs #2294

Merged
merged 1 commit into from Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions ethers-addressbook/src/lib.rs
@@ -1,5 +1,6 @@
#![doc = include_str!("../README.md")]
#![deny(unsafe_code, rustdoc::broken_intra_doc_links)]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub use ethers_core::types::{Address, Chain};

Expand Down
1 change: 1 addition & 0 deletions ethers-contract/ethers-contract-abigen/src/lib.rs
Expand Up @@ -9,6 +9,7 @@

#![deny(rustdoc::broken_intra_doc_links, missing_docs, unsafe_code)]
#![warn(unreachable_pub)]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[cfg(test)]
#[allow(missing_docs)]
Expand Down
1 change: 1 addition & 0 deletions ethers-contract/ethers-contract-derive/src/lib.rs
Expand Up @@ -2,6 +2,7 @@

#![deny(missing_docs, unsafe_code, unused_crate_dependencies)]
#![deny(rustdoc::broken_intra_doc_links)]
#![cfg_attr(docsrs, feature(doc_cfg))]

use abigen::Contracts;
use proc_macro::TokenStream;
Expand Down
1 change: 1 addition & 0 deletions ethers-contract/src/lib.rs
Expand Up @@ -2,6 +2,7 @@
#![doc = include_str!("../README.md")]
#![deny(unsafe_code)]
#![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[path = "contract.rs"]
mod _contract;
Expand Down
1 change: 1 addition & 0 deletions ethers-core/src/lib.rs
Expand Up @@ -2,6 +2,7 @@
#![doc = include_str!("../README.md")]
#![deny(rustdoc::broken_intra_doc_links)]
#![cfg_attr(not(target_arch = "wasm32"), deny(unused_crate_dependencies))]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub mod types;

Expand Down
1 change: 1 addition & 0 deletions ethers-etherscan/src/lib.rs
@@ -1,5 +1,6 @@
#![doc = include_str!("../README.md")]
#![deny(unsafe_code, rustdoc::broken_intra_doc_links)]
#![cfg_attr(docsrs, feature(doc_cfg))]

use crate::errors::{is_blocked_by_cloudflare_response, is_cloudflare_security_challenge};
use contract::ContractMetadata;
Expand Down
1 change: 1 addition & 0 deletions ethers-middleware/src/lib.rs
@@ -1,5 +1,6 @@
#![doc = include_str!("../README.md")]
#![deny(unsafe_code, rustdoc::broken_intra_doc_links)]
#![cfg_attr(docsrs, feature(doc_cfg))]

/// The [Gas Escalator middleware](crate::gas_escalator::GasEscalatorMiddleware)
/// is used to re-broadcast transactions with an increasing gas price to guarantee
Expand Down
2 changes: 1 addition & 1 deletion ethers-providers/src/lib.rs
@@ -1,8 +1,8 @@
#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![allow(clippy::type_complexity)]
#![warn(missing_docs)]
#![deny(unsafe_code, rustdoc::broken_intra_doc_links)]
#![cfg_attr(docsrs, feature(doc_cfg))]

mod ext;
pub use ext::*;
Expand Down
1 change: 1 addition & 0 deletions ethers-signers/src/lib.rs
@@ -1,5 +1,6 @@
#![doc = include_str!("../README.md")]
#![deny(unsafe_code, rustdoc::broken_intra_doc_links)]
#![cfg_attr(docsrs, feature(doc_cfg))]

mod wallet;
pub use wallet::{MnemonicBuilder, Wallet, WalletError};
Expand Down
1 change: 1 addition & 0 deletions ethers-solc/src/lib.rs
@@ -1,5 +1,6 @@
#![doc = include_str!("../README.md")]
#![deny(rustdoc::broken_intra_doc_links)]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub mod artifacts;
pub mod sourcemap;
Expand Down
1 change: 1 addition & 0 deletions ethers/src/lib.rs
Expand Up @@ -81,6 +81,7 @@

#![warn(missing_debug_implementations, missing_docs, rust_2018_idioms, unreachable_pub)]
#![deny(rustdoc::broken_intra_doc_links)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![doc(test(no_crate_inject, attr(deny(rust_2018_idioms), allow(dead_code, unused_variables))))]

#[doc(inline)]
Expand Down