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:
fixes the warning ,but the documentation still is not built properly.. In any case https://docs.rs/va108xx/0.3.0/va108xx/ shows the end result , with the documentation displaying where the rt feature is required.
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: