Skip to content

Conversation

@cpu
Copy link
Collaborator

@cpu cpu commented Nov 20, 2025

Fixes a docs.rs build failure by following the same approach used in rustls, removing doc_auto_cfg and privatizing the docsrs cfg flag. Also switches CI to build docs w/ doc_cfg enabled.

cpu added 2 commits November 20, 2025 16:51
Fixes a docs.rs build failure by following the same approach used in
rustls, removing `doc_auto_cfg` and privatizing the docsrs cfg flag.

```
[INFO] [stderr]  Documenting instant-acme v0.8.3 (/opt/rustwide/workdir)
[INFO] [stderr] error[E0557]: feature has been removed
[INFO] [stderr]  --> src/lib.rs:5:38
[INFO] [stderr]   |
[INFO] [stderr] 5 | #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
[INFO] [stderr]   |                                      ^^^^^^^^^^^^ feature has been removed
[INFO] [stderr]   |
[INFO] [stderr]   = note: removed in CURRENT_RUSTC_VERSION; see <rust-lang/rust#138907> for more information
[INFO] [stderr]   = note: merged into `doc_cfg`
[INFO] [stderr]
[INFO] [stderr] error: Compilation failed, aborting rustdoc
```
This in turn requires using nightly.
@cpu cpu self-assigned this Nov 20, 2025
Copy link
Owner

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Want to put in a version bump?

@cpu
Copy link
Collaborator Author

cpu commented Nov 20, 2025

Thanks! Want to put in a version bump?

Done.

Would you mind publishing to crates.io post-merge? I don't think I have perms.

@cpu cpu merged commit afa85a3 into djc:main Nov 20, 2025
12 checks passed
@djc
Copy link
Owner

djc commented Nov 21, 2025

Published 0.8.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants