While working with rustdoc I have a markdown file with the following contents:
Some docs
extern crate tokio;
#[tokio::main]
async fn main() { }
running rustdoc src/some_docs.md --test --edition 2018 -L target/debug/deps
produces the error
= note: LINK : fatal error LNK1181: cannot open input file 'windows.lib'
This happens when I am using the Tokio crate. On Ubuntu and MacOS everything works as expected, on Windows the tests fail in a linking error. Did I do something wrong?
Steps to reproduce
A minimal example:
git clone https://github.com/btielen/rustdocwindows.git
cd rustdocwindows
cargo build
rustdoc src/some_docs.md --test --edition 2018 -L target/debug/deps
Environment
- Windows 10
- stable-x86_64-pc-windows-msvc (default)
- rustdoc 1.62.0 (a8314ef 2022-06-27)
- rustc 1.62.0 (a8314ef 2022-06-27)