Open Coding-Badly opened 4 weeks ago
I think that we should probably only support building docs that include items from all platforms on unix. But trying to build docs on windows should still successfully build docs for the things that are available on windows.
Version 1.38.0
Platform Windows 11 Pro / 64 bit
Description On Windows, the documentation for a project using Tokio cannot be build with
docsrs
enabled. This makes it difficult-to-impossible to include the automatically generated feature flag details. More details are available from this post on the Rust Users forum.A test project was created with
cargo new tokio-issue-112683
.Cargo.toml was updated to this...
Set the
RUSTFLAGS
environment variable...set RUSTFLAGS=--cfg docsrs
Then try to build the documentation...
cargo +nightly doc --all-features
The error list is long...