You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my crates, I currently use the following code snippet at the top of lib.rs:
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
For documentation built by docs.rs, this explicitly displays required features for modules/functions etc. without requiring additional attributes.
What do you think about adding this to the generated library?
In all my libraries using this, I use the following snippets in Cargo.toml to use this for the docs-rs build:
In my crates, I currently use the following code snippet at the top of
lib.rs
:#![cfg_attr(docsrs, feature(doc_auto_cfg))]
For documentation built by docs.rs, this explicitly displays required features for modules/functions etc. without requiring additional attributes.
What do you think about adding this to the generated library?
In all my libraries using this, I use the following snippets in
Cargo.toml
to use this for the docs-rs build:The text was updated successfully, but these errors were encountered: