Skip to content

Commit 4f596a9

Browse files
authored
ci: check docs with enabled sys_rng feature (#789)
1 parent b6a28dc commit 4f596a9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/workspace.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,20 +102,20 @@ jobs:
102102
- name: fmt
103103
run: cargo fmt --all -- --check
104104

105-
check-doc:
105+
doc:
106106
name: rustdoc
107107
runs-on: ubuntu-24.04
108108
steps:
109109
- uses: actions/checkout@v6
110110
- uses: dtolnay/rust-toolchain@master
111111
with:
112-
# We need Nightly for doc_auto_cfg
113-
toolchain: nightly-2025-09-28
112+
# We need Nightly for doc_cfg
113+
toolchain: nightly-2026-01-25
114114
- uses: Swatinem/rust-cache@v2
115115
- name: Generate Docs
116116
env:
117117
RUSTDOCFLAGS: "-Dwarnings --cfg docsrs"
118-
run: cargo doc --no-deps --features std
118+
run: cargo doc --no-deps --features std,sys_rng
119119

120120
typos:
121121
runs-on: ubuntu-latest

src/sys_rng.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ use rand_core::{TryCryptoRng, TryRng};
2929
/// [rand]: https://crates.io/crates/rand
3030
/// [`rand::rngs::SysRng`]: https://docs.rs/rand/latest/rand/rngs/struct.SysRng.html
3131
/// [`Rng`]: rand_core::Rng
32+
/// [`UnwrapErr`]: rand_core::UnwrapErr
3233
#[derive(Clone, Copy, Debug, Default)]
3334
pub struct SysRng;
3435

0 commit comments

Comments
 (0)