Skip to content

Commit abfae2c

Browse files
authored
Merge pull request #1468 from Lorak-mmk/fix-docs.rs
Fix docs.rs build
2 parents 81c5c62 + 4c0fe9c commit abfae2c

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/rust.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,20 @@ jobs:
142142
uses: actions-rust-lang/setup-rust-toolchain@v1
143143
- name: Compile docs
144144
run: RUSTDOCFLAGS=-Dwarnings cargo doc
145+
146+
docs_rs:
147+
runs-on: ubuntu-latest
148+
env:
149+
RUSTDOCFLAGS: -Dwarnings
150+
steps:
151+
- uses: actions/checkout@v5
152+
- name: Install Rust Nightly
153+
uses: actions-rust-lang/setup-rust-toolchain@v1
154+
with:
155+
toolchain: nightly
156+
- uses: taiki-e/install-action@v2
157+
with:
158+
tool: cargo-docs-rs
159+
- run: cargo docs-rs -p scylla
160+
- run: cargo docs-rs -p scylla-cql
161+
- run: cargo docs-rs -p scylla-macros

scylla/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
//! Refer to [scylla/Cargo.toml](https://docs.rs/crate/scylla/latest/source/Cargo.toml.orig)
9898
//! for the list of available features and their descriptions.
9999
100-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
100+
#![cfg_attr(docsrs, feature(doc_cfg))]
101101

102102
#[doc(hidden)]
103103
pub mod _macro_internal {

0 commit comments

Comments
 (0)