Skip to content

Conversation

@loyd
Copy link

@loyd loyd commented Jan 12, 2026

These attributes were removed:

error[E0557]: feature has been removed
 --> /home/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cordyceps-0.3.4/src/lib.rs:2:38
  |
2 | #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg, doc_cfg_hide))]
  |                                      ^^^^^^^^^^^^ feature has been removed
  |
  = note: removed in 1.92.0; see <https://github.com/rust-lang/rust/pull/138907> for more information
  = note: merged into `doc_cfg`

error[E0557]: feature has been removed
 --> /home/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cordyceps-0.3.4/src/lib.rs:2:52
  |
2 | #![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg, doc_cfg_hide))]
  |                                                    ^^^^^^^^^^^^ feature has been removed
  |
  = note: removed in 1.92.0; see <https://github.com/rust-lang/rust/pull/138907> for more information
  = note: merged into `doc_cfg`

So, it's impossible to build documentation for downstream crates.

These attributes were removed in 1.92.0
@loyd
Copy link
Author

loyd commented Jan 12, 2026

It seems the version specified in rust-toolchain.toml (2025-07-20) still requires doc_cfg_hide. Some options here:

  1. Update the toolchain
  2. Remove these attributes only for crates that don't require doc_cfg_hide (like cordyceps)
  3. Add doc_cfg_hide based on the version

@hawkw WDYT?

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.

1 participant