Conversation
If we use `#![cfg_attr(docsrs, feature(doc_auto_cfg))]` instead of `#![cfg_attr(docsrs, feature(doc_cfg))]` we no longer need to manually mark types with `#[cfg_attr(docsrs, doc(cfg(feature = "std")))]`. Sweeeeeet.
|
I'm not really sure, if we do this we will need to check if any odd cfgs (like |
|
From my investigation just now it looks like this PR actually improves the situation. Build docs on master Build docs on this branch (Did not check other instances so there may be regressions elsewhere. I only checked this one and |
I'm surprised you are not more enthusiastic for this change, 100 lines of red in the diff coupled with less maintenance and never having to remember to add the additional attribute - seems like a big win to me. |
|
Note to self, if this merges we need to change #1127 to remove the attribute from |
|
Nice! I also suspected that it would improve the situation somehow, because surely we couldn't have gotten it all correct doing things by hand ... am glad to be proven correct. |
|
Cool, you've convinced me. |
If we use
#![cfg_attr(docsrs, feature(doc_auto_cfg))]instead of#![cfg_attr(docsrs, feature(doc_cfg))]we no longer need to manually mark types with#[cfg_attr(docsrs, doc(cfg(feature = "std")))].Sweeeeeet.
Props to pezcore for the lesson :)