Doc_auto_cfg is gone: what am I supposed to do?
⚓ Rust 📅 2025-11-01 👤 surdeus 👁️ 7I'm the author of WinSafe crate. When generating its documentation, I always used doc_auto_cfg to tag the items which depend on cargo features, but currently the documentation is broken:
error[E0557]: feature has been removed
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
^^^^^^^^^^^^ feature has been removed
note: merged into `doc_cfg`
Then I followed the recommendation and my lib.rs:
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
is now:
#![cfg_attr(docsrs, feature(doc_cfg))]
but the output docs are wrong. Below are two screenshots: the old one at left (correct), and the new one on the right, with the tags messed up:
What am I supposed to do?
2 posts - 2 participants
🏷️ Rust_feed
