From 2ac9bacbd8b62c636ac2e7a8abeae1cc914d6915 Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Mon, 18 Sep 2023 18:44:44 +0300 Subject: [PATCH] CI: don't pass docsrs feature to cargo doc One dependency has docs that make nightly rustdoc fail, while others require nightly with the "docsrs" feature. --- .github/workflows/rust.yml | 4 +--- tendermint/Cargo.toml | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index da71defdb..a879f621b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -57,6 +57,4 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - env: - RUSTDOCFLAGS: "--cfg docsrs" - run: cargo doc --all-features + - run: cargo doc --all-features diff --git a/tendermint/Cargo.toml b/tendermint/Cargo.toml index b06ce654d..fd837aece 100644 --- a/tendermint/Cargo.toml +++ b/tendermint/Cargo.toml @@ -26,7 +26,8 @@ authors = [ [package.metadata.docs.rs] all-features = true -rustdoc-args = ["--cfg", "docsrs"] +# Enable when the num-traits dependency builds with nightly +#rustdoc-args = ["--cfg", "docsrs"] [dependencies] bytes = { version = "1.2", default-features = false, features = ["serde"] }