enable doc_auto_cfg for docs.rs (#3113)

* enable doc_auto_cfg for docs.rs

This should expose more feature labels in the generated documentation and removes the needs for the manually labeling the features for a type, function or enum variants.

* enable docsrs cfg when building docs for master
This commit is contained in:
i509VCB authored and GitHub committed 2022-10-26 17:07:25 -04:00
1 parent 49415fe971
commit d81cb46be0
8 files changed
+22 -5

No files matched your search

+1
View File
@@ -30,6 +30,7 @@ jobs:
- name: Build the docs (nightly)
run: |
cargo +nightly doc --no-deps --lib
env: RUSTDOCFLAGS="--cfg docsrs"
- name: Build the docs (stable)
run: cargo +stable doc --no-deps --lib