docs: Use docsrs config attributes

This commit is contained in:
Kévin Commaille 2021-04-06 18:26:00 +02:00 committed by Jonas Platte
parent a310ccc318
commit b0ae341e87

View File

@ -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