mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-09-30 14:30:42 +00:00

Starts on #440. This branch adds `doc_cfg` attributes to `tracing` and `tracing-core`, when a `docsrs` cfg flag is passed to rustdoc. It also adds docs.rs crate metadata to configure docs.rs to set that flag, and adds it to the Netlify config as well. Signed-off-by: Eliza Weisman <eliza@buoyant.io> Co-authored-by: Jane Lusby <jlusby42@gmail.com>
12 lines
291 B
TOML
12 lines
291 B
TOML
[build]
|
|
command = """
|
|
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly --profile minimal \
|
|
&& source $HOME/.cargo/env \
|
|
&& RUSTDOCFLAGS=\"--cfg docsrs\" cargo +nightly doc --no-deps
|
|
"""
|
|
publish = "target/doc"
|
|
|
|
[[redirects]]
|
|
from = "/"
|
|
to = "/tracing"
|