rust-lightning/lightning
Jeffrey Czyz 62b1e01ad9
Generate docs with features for docs.rs
Enable generating docs using --all-features or --features="std" where
applicable. Additionally, use doc_auto_cfg to tag items requiring a
feature.

https://doc.rust-lang.org/nightly/rustdoc/unstable-features.html#doc_auto_cfg-automatically-generate-doccfg

This requires building with nightly, which is what is used by docs.rs.

https://docs.rs/about/builds

To test locally, use:

RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc ...
2022-02-18 15:38:31 -06:00
..
src Generate docs with features for docs.rs 2022-02-18 15:38:31 -06:00
Cargo.toml Generate docs with features for docs.rs 2022-02-18 15:38:31 -06:00