docs: Use docsrs config attributes
@@ -18,7 +18,7 @@ jobs:
- name: Build docs
uses: actions-rs/cargo@v1
env:
- RUSTDOCFLAGS: "--enable-index-page -Zunstable-options"
+ RUSTDOCFLAGS: "--enable-index-page -Zunstable-options --cfg docsrs"
with:
command: doc
args: --no-deps --workspace --exclude xtask --features api,events,signatures,appservice-api,client-api,federation-api,identity-service-api,push-gateway-api,either,rand,markdown,compat,unstable-pre-spec -Zrustdoc-map
