mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
tokio: render taskdump documentation on docs.rs (#5972)
Modifies `package.metadata.docs.r` so that `--cfg tokio_taskdump` is used by docs.rs when building documentation.
This commit is contained in:
+4
-4
@@ -157,10 +157,10 @@ loom = { version = "0.7", features = ["futures", "checkpoint"] }
|
|||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
all-features = true
|
all-features = true
|
||||||
# enable unstable features in the documentation
|
# enable unstable features in the documentation
|
||||||
rustdoc-args = ["--cfg", "docsrs", "--cfg", "tokio_unstable"]
|
rustdoc-args = ["--cfg", "docsrs", "--cfg", "tokio_unstable", "--cfg", "tokio_taskdump"]
|
||||||
# it's necessary to _also_ pass `--cfg tokio_unstable` to rustc, or else
|
# it's necessary to _also_ pass `--cfg tokio_unstable` and `--cfg tokio_taskdump`
|
||||||
# dependencies will not be enabled, and the docs build will fail.
|
# to rustc, or else dependencies will not be enabled, and the docs build will fail.
|
||||||
rustc-args = ["--cfg", "tokio_unstable"]
|
rustc-args = ["--cfg", "tokio_unstable", "--cfg", "tokio_taskdump"]
|
||||||
|
|
||||||
[package.metadata.playground]
|
[package.metadata.playground]
|
||||||
features = ["full", "test-util"]
|
features = ["full", "test-util"]
|
||||||
|
|||||||
Reference in New Issue
Block a user