fix: enable doc_cfg feature for docsrs (#2294)
This commit is contained in:
parent
80ac3947d0
commit
16f9fab75c
|
@ -1,5 +1,6 @@
|
||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
#![deny(unsafe_code, rustdoc::broken_intra_doc_links)]
|
#![deny(unsafe_code, rustdoc::broken_intra_doc_links)]
|
||||||
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
|
|
||||||
pub use ethers_core::types::{Address, Chain};
|
pub use ethers_core::types::{Address, Chain};
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
#![deny(rustdoc::broken_intra_doc_links, missing_docs, unsafe_code)]
|
#![deny(rustdoc::broken_intra_doc_links, missing_docs, unsafe_code)]
|
||||||
#![warn(unreachable_pub)]
|
#![warn(unreachable_pub)]
|
||||||
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
#![deny(missing_docs, unsafe_code, unused_crate_dependencies)]
|
#![deny(missing_docs, unsafe_code, unused_crate_dependencies)]
|
||||||
#![deny(rustdoc::broken_intra_doc_links)]
|
#![deny(rustdoc::broken_intra_doc_links)]
|
||||||
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
|
|
||||||
use abigen::Contracts;
|
use abigen::Contracts;
|
||||||
use proc_macro::TokenStream;
|
use proc_macro::TokenStream;
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
#![deny(unsafe_code)]
|
#![deny(unsafe_code)]
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
|
|
||||||
#[path = "contract.rs"]
|
#[path = "contract.rs"]
|
||||||
mod _contract;
|
mod _contract;
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
#![deny(rustdoc::broken_intra_doc_links)]
|
#![deny(rustdoc::broken_intra_doc_links)]
|
||||||
#![cfg_attr(not(target_arch = "wasm32"), deny(unused_crate_dependencies))]
|
#![cfg_attr(not(target_arch = "wasm32"), deny(unused_crate_dependencies))]
|
||||||
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
|
|
||||||
pub mod types;
|
pub mod types;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
#![deny(unsafe_code, rustdoc::broken_intra_doc_links)]
|
#![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 crate::errors::{is_blocked_by_cloudflare_response, is_cloudflare_security_challenge};
|
||||||
use contract::ContractMetadata;
|
use contract::ContractMetadata;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
#![deny(unsafe_code, rustdoc::broken_intra_doc_links)]
|
#![deny(unsafe_code, rustdoc::broken_intra_doc_links)]
|
||||||
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
|
|
||||||
/// The [Gas Escalator middleware](crate::gas_escalator::GasEscalatorMiddleware)
|
/// The [Gas Escalator middleware](crate::gas_escalator::GasEscalatorMiddleware)
|
||||||
/// is used to re-broadcast transactions with an increasing gas price to guarantee
|
/// is used to re-broadcast transactions with an increasing gas price to guarantee
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
|
||||||
#![allow(clippy::type_complexity)]
|
#![allow(clippy::type_complexity)]
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
#![deny(unsafe_code, rustdoc::broken_intra_doc_links)]
|
#![deny(unsafe_code, rustdoc::broken_intra_doc_links)]
|
||||||
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
|
|
||||||
mod ext;
|
mod ext;
|
||||||
pub use ext::*;
|
pub use ext::*;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
#![deny(unsafe_code, rustdoc::broken_intra_doc_links)]
|
#![deny(unsafe_code, rustdoc::broken_intra_doc_links)]
|
||||||
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
|
|
||||||
mod wallet;
|
mod wallet;
|
||||||
pub use wallet::{MnemonicBuilder, Wallet, WalletError};
|
pub use wallet::{MnemonicBuilder, Wallet, WalletError};
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
#![deny(rustdoc::broken_intra_doc_links)]
|
#![deny(rustdoc::broken_intra_doc_links)]
|
||||||
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
|
|
||||||
pub mod artifacts;
|
pub mod artifacts;
|
||||||
pub mod sourcemap;
|
pub mod sourcemap;
|
||||||
|
|
|
@ -81,6 +81,7 @@
|
||||||
|
|
||||||
#![warn(missing_debug_implementations, missing_docs, rust_2018_idioms, unreachable_pub)]
|
#![warn(missing_debug_implementations, missing_docs, rust_2018_idioms, unreachable_pub)]
|
||||||
#![deny(rustdoc::broken_intra_doc_links)]
|
#![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(test(no_crate_inject, attr(deny(rust_2018_idioms), allow(dead_code, unused_variables))))]
|
||||||
|
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
|
|
Loading…
Reference in New Issue