Skip to content

Commit

Permalink
CI: don't pass docsrs feature to cargo doc
Browse files Browse the repository at this point in the history
One dependency has docs that make nightly rustdoc fail,
while others require nightly with the "docsrs" feature.
  • Loading branch information
mzabaluev committed Sep 18, 2023
1 parent 4c44597 commit 2ac9bac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion tendermint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down

0 comments on commit 2ac9bac

Please sign in to comment.