Commit 98c9557
fix: use nightly Rust for deploy-docs job to support doc_cfg feature
The deploy-docs job sets RUSTDOCFLAGS='--cfg docsrs' which activates
`#![cfg_attr(docsrs, feature(doc_cfg))]` in lib.rs. Since feature(doc_cfg)
is a nightly-only feature, the build fails with stable Rust 1.90:
error[E0554]: `#![feature]` may not be used on the stable release channel
Switch the deploy-docs job to use nightly Rust, which is the standard
practice for documentation builds (docs.rs also uses nightly). The separate
'docs' CI check job remains on stable since it doesn't set the docsrs cfg.
Co-authored-by: Greg Nazario <greg@gnazar.io>1 parent b80ae9c commit 98c9557
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
| 174 | + | |
| 175 | + | |
178 | 176 | | |
179 | 177 | | |
180 | 178 | | |
| |||
0 commit comments