From 5d15031b385abde93d4673fed856c5805271422c Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 27 Feb 2023 21:25:07 +0100 Subject: [PATCH] ci: build without deps (#2196) * ci: build without deps * warn broken doc links --------- Co-authored-by: Georgios Konstantopoulos --- .github/workflows/ci.yml | 4 ++-- src/lib.rs | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16d62793..4d9600bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -139,10 +139,10 @@ jobs: with: cache-on-failure: true - name: cargo doc - run: cargo +nightly doc --lib --all-features + run: cargo doc --no-deps --all --all-features env: RUSTFLAGS: --cfg docsrs - RUSTDOCFLAGS: --cfg docsrs -Dwarnings + RUSTDOCFLAGS: --cfg docsrs wasm: name: WASM diff --git a/src/lib.rs b/src/lib.rs index 5fd61c2b..19b5a35b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,9 @@ +#![warn(missing_debug_implementations, missing_docs, rust_2018_idioms, unreachable_pub)] +#![allow(rustdoc::broken_intra_doc_links)] +#![doc(test( + no_crate_inject, + attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables)) +))] //! # ethers-rs //! //! A complete Ethereum and Celo Rust library.