Unable to use the docsrs configuration under Windows #6625
Labels
A-tokio
Area: The main tokio crate
C-bug
Category: This is a bug.
E-help-wanted
Call for participation: Help is requested to fix this issue.
T-docs
Topic: documentation
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...
The text was updated successfully, but these errors were encountered: