mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-09-29 22:10:38 +00:00

Currently, the Netlify docs are failing because of a warning that one of the lints we explicitly enable is no longer a warning on nightly but becoming a hard error. This is because the docs are built on nightly with `-D warnings`, which denies all warnings...which seems not ideal. For now, let's not remove that lint from the `deny` list, as it's still a valid lint on stable. Instead, this PR explicitly allows that lint on the docs build.
20 lines
388 B
TOML
20 lines
388 B
TOML
[build]
|
|
command = """
|
|
rustup install nightly --profile minimal \
|
|
&& cargo doc --no-deps --all-features
|
|
"""
|
|
publish = "target/doc"
|
|
|
|
[build.environment]
|
|
RUSTDOCFLAGS="""
|
|
-D warnings \
|
|
--force-warn renamed-and-removed-lints \
|
|
--cfg docsrs \
|
|
--cfg tracing_unstable
|
|
"""
|
|
RUSTFLAGS="--cfg tracing_unstable"
|
|
|
|
[[redirects]]
|
|
from = "/"
|
|
to = "/tracing"
|