chore: deny warnings in docs builds

This way, we'll get a build failure on PRs if the docs are broken.
I really thought we already did this, but apparently, we don't?

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
This commit is contained in:
Eliza Weisman 2021-12-29 10:33:34 -08:00
parent d8680547b5
commit 46a3d96952

View File

@ -3,9 +3,14 @@
rustup install nightly --profile minimal \ rustup install nightly --profile minimal \
&& cargo doc --no-deps --all-features && cargo doc --no-deps --all-features
""" """
environment = { RUSTDOCFLAGS= "--cfg docsrs" }
publish = "target/doc" publish = "target/doc"
[build.environment]
RUSTDOCFLAGS="""
-D warnings \
--cfg docsrs
"""
[[redirects]] [[redirects]]
from = "/" from = "/"
to = "/tracing" to = "/tracing"