mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-10-02 15:24:47 +00:00
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:
parent
d8680547b5
commit
46a3d96952
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user