I'm adding "This is supported on crate features whatever and this_too only." to some documentation. I'm following @alice's advice (thank you @alice!). Cargo.toml has been updated. I'm working in Windows so setting the environment variable is...
set RUSTFLAGS=--cfg docsrs
Building...
cargo +nightly doc --all-features
Results in Tokio related errors...
Checking tokio v1.38.0
error[E0433]: failed to resolve: unresolved import
--> C:\Users\bcook\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.38.0\src\fs\file.rs:913:16
|
913 | use crate::os::windows::io::{AsRawHandle, FromRawHandle, RawHandle, AsHandle, BorrowedHandle};
| ^^
| |
| unresolved import
| help: a similar path exists: `std::os`
|
note: found an item that was configured out
--> C:\Users\bcook\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.38.0\src\lib.rs:634:27
|
634 | pub(crate) use self::doc::os;
| ^^
= note: the item is gated behind the `net` feature
note: found an item that was configured out
--> C:\Users\bcook\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.38.0\src\lib.rs:638:21
|
638 | pub(crate) use std::os;
| ^^
For more information about this error, try `rustc --explain E0433`.
error: could not compile `tokio` (lib) due to 1 previous error
Is that expected? Do I need to use something other docsrs
? Is that an issue with Tokio that should be reported?