I tried building an application with opencv but it fails to build.
Toolchain:
nightly-x86_64-pc-windows-gnu (default)
rustc 1.59.0-nightly (c5ecc1570 2021-12-15)
Naively I ran cargo build but I got an error could not execute llvm-config. So I went back to read the README and it instructed me to run choco install llvm opencv.
I also preemptively set these environment variables because I read they were needed:

Then I got cannot find -lclang.dll. Following #305 (comment) I downloaded llvm-cumMinGW-x86_64-w64-mingw32-posix-msvcrt-v1.0.0.7z from here, extracted it and added llvm-cumMinGW64-msvcrt\lib and llvm-cumMinGW64-msvcrt\bin to my PATH.
I got an error, something about vcruntime_exception.h and I noticed that the build process now used binaries from llvm-cumMinGW64-msvcrt\bin, so I removed it again from PATH and instead, as the issue comment suggests, I copied libclang.dll.a to C:\dev-tools\Rust\.multirust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib.
The reason I chose this folder is that I saw it being used in the error message. I'm actually a bit surprised to see it being used because I was quite sure that the nightly-x86_64-pc-windows-gnu toolchain brings its own tools and does not use a potentially installed MinGW installation. (Edit: I removed the extra MinGW from my system and the error is the same.)
Anyway, the next error that I now get is fatal error: 'limits' file not found and I had no luck finding a solution for that.
Full build log
I tried building an application with
opencvbut it fails to build.Toolchain:
Naively I ran
cargo buildbut I got an errorcould not execute llvm-config. So I went back to read the README and it instructed me to runchoco install llvm opencv.I also preemptively set these environment variables because I read they were needed:

Then I got
cannot find -lclang.dll. Following #305 (comment) I downloadedllvm-cumMinGW-x86_64-w64-mingw32-posix-msvcrt-v1.0.0.7zfrom here, extracted it and addedllvm-cumMinGW64-msvcrt\libandllvm-cumMinGW64-msvcrt\binto my PATH.I got an error, something about
vcruntime_exception.hand I noticed that the build process now used binaries fromllvm-cumMinGW64-msvcrt\bin, so I removed it again from PATH and instead, as the issue comment suggests, I copiedlibclang.dll.atoC:\dev-tools\Rust\.multirust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib.The reason I chose this folder is that I saw it being used in the error message. I'm actually a bit surprised to see it being used because I was quite sure that the(Edit: I removed the extra MinGW from my system and the error is the same.)nightly-x86_64-pc-windows-gnutoolchain brings its own tools and does not use a potentially installed MinGW installation.Anyway, the next error that I now get is
fatal error: 'limits' file not foundand I had no luck finding a solution for that.Full build log