Hi,
I've used #![cfg_attr(docsrs, feature(doc_cfg))]
and #[cfg_attr(docsrs, doc(cfg(feature = "my_flag")))]
like Tokio does.
Added in Cargo.toml
:
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
Now I'm wondering how do I test that locally before pushing everything on crates.io?
Thanks!